Fix a control flow problem in commit rL257277.
authorChen Li <meloli87@gmail.com>
Sun, 10 Jan 2016 06:13:32 +0000 (06:13 +0000)
committerChen Li <meloli87@gmail.com>
Sun, 10 Jan 2016 06:13:32 +0000 (06:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257278 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/SimplifyCFG.cpp

index 9f115bfb35dd776dcd6e984ae6ba51bfee62b5a1..14a76d7802eb6cea650fb3ffe34e81d0c20dd4f5 100644 (file)
@@ -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);
            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).
 }
 
 // Simplify resume that is shared by several landing pads (phi of landing pad).