summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Li <meloli87@gmail.com>2016-01-10 06:13:32 +0000
committerChen Li <meloli87@gmail.com>2016-01-10 06:13:32 +0000
commitc375450e3f9abcb04ec804c1e6d7bd5df616b314 (patch)
tree3e9a1b014124a9c1b4c279c22454702bac16826d
parent1689c2f54b133cca7dde3d336f12df758227ffbc (diff)
downloadbcm5719-llvm-c375450e3f9abcb04ec804c1e6d7bd5df616b314.tar.gz
bcm5719-llvm-c375450e3f9abcb04ec804c1e6d7bd5df616b314.zip
Fix a control flow problem in commit rL257277.
llvm-svn: 257278
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 9f115bfb35d..14a76d7802e 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -3247,6 +3247,8 @@ bool SimplifyCFGOpt::SimplifyResume(ResumeInst *RI, IRBuilder<> &Builder) {
RI->getValue() == RI->getParent()->getFirstNonPHI())
// The resume must unwind the exception that caused control to branch here.
return SimplifySingleResume(RI);
+ else
+ return false;
}
// Simplify resume that is shared by several landing pads (phi of landing pad).
OpenPOWER on IntegriCloud