summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-29 21:21:20 +0000
committerChris Lattner <sabre@nondot.org>2006-10-29 21:21:20 +0000
commitfc519cd2d122200fb43a760dacd76a95346a6061 (patch)
treeb0513d2263fb7ae3932cf9601c664bab1033835b /llvm/lib/Transforms/Utils
parent4d377fec3bdcc844ef35aee5796e3bce2636728e (diff)
downloadbcm5719-llvm-fc519cd2d122200fb43a760dacd76a95346a6061.tar.gz
bcm5719-llvm-fc519cd2d122200fb43a760dacd76a95346a6061.zip
Fix SimplifyCFG/2006-10-29-InvokeCrash.ll, a crash compiling QT.
llvm-svn: 31284
Diffstat (limited to 'llvm/lib/Transforms/Utils')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index de2ab0645c0..9794ed6fbb7 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -853,7 +853,7 @@ static bool HoistThenElseCodeToIf(BranchInst *BI) {
Instruction *I1 = BB1->begin(), *I2 = BB2->begin();
if (I1->getOpcode() != I2->getOpcode() || !I1->isIdenticalTo(I2) ||
- isa<PHINode>(I1))
+ isa<PHINode>(I1) || isa<InvokeInst>(I1))
return false;
// If we get here, we can hoist at least one instruction.
OpenPOWER on IntegriCloud