Fix a control flow problem in commit rL257277.
[oota-llvm.git] / 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);
+  else
+    return false;
 }
 
 // Simplify resume that is shared by several landing pads (phi of landing pad).