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:
Sanjay Patel 2016-08-11 15:16:06 +00:00
parent 2d320e58a9
commit 4636b0c422

View File

@ -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;
}