diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-29 21:21:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-29 21:21:20 +0000 |
commit | 120bc21576c33188992fdb5f22459d276f2fb0fc (patch) | |
tree | e27522c3ff240e8520d86213c5b3f6e7b8ffde1c /lib/Transforms | |
parent | 7c94454c560fb0a6708bc39ad0483b984b170660 (diff) |
Fix SimplifyCFG/2006-10-29-InvokeCrash.ll, a crash compiling QT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31284 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Utils/SimplifyCFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index de2ab0645c..9794ed6fbb 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/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. |