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
This commit is contained in:
Chris Lattner
2006-10-29 21:21:20 +00:00
parent 7c94454c56
commit 120bc21576

View File

@@ -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.