summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-08-11 15:16:06 +0000
committerSanjay Patel <spatel@rotateright.com>2016-08-11 15:16:06 +0000
commit5a470950b98a5b079202963e40ad67520874fc6e (patch)
tree591e91cdb8cfb6a195bac0a8d6413fd353a994d3 /llvm
parent9ba95f99f3703fd06ce5912343526c2cc6ba353e (diff)
downloadbcm5719-llvm-5a470950b98a5b079202963e40ad67520874fc6e.tar.gz
bcm5719-llvm-5a470950b98a5b079202963e40ad67520874fc6e.zip
getParent()->getParent() == getFunction() ; NFC
llvm-svn: 278339
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
index c81666119ce..3b5f92dbb0f 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
@@ -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;
}
OpenPOWER on IntegriCloud