From 83fa9b85da9b94a331bc2abd545b410e516ac6e5 Mon Sep 17 00:00:00 2001 From: Chen Li Date: Sun, 10 Jan 2016 06:13:32 +0000 Subject: [PATCH] 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 --- lib/Transforms/Utils/SimplifyCFG.cpp | 2 ++ 1 file changed, 2 insertions(+) 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). -- 2.34.1