mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-10 06:03:52 +00:00
getParent()->getParent() == getFunction() ; NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278339 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2d320e58a9
commit
4636b0c422
@ -1280,8 +1280,7 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) {
|
||||
|
||||
// If the caller function is nounwind, mark the call as nounwind, even if the
|
||||
// callee isn't.
|
||||
if (CI.getParent()->getParent()->doesNotThrow() &&
|
||||
!CI.doesNotThrow()) {
|
||||
if (CI.getFunction()->doesNotThrow() && !CI.doesNotThrow()) {
|
||||
CI.setDoesNotThrow();
|
||||
return &CI;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user