From: Chen Li Date: Sun, 10 Jan 2016 06:13:32 +0000 (+0000) Subject: Fix a control flow problem in commit rL257277. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=83fa9b85da9b94a331bc2abd545b410e516ac6e5;p=oota-llvm.git Fix a control flow problem in commit rL257277. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257278 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 9f115bfb35d..14a76d7802e 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/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).