From fc519cd2d122200fb43a760dacd76a95346a6061 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 29 Oct 2006 21:21:20 +0000 Subject: Fix SimplifyCFG/2006-10-29-InvokeCrash.ll, a crash compiling QT. llvm-svn: 31284 --- llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp') 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(I1)) + isa(I1) || isa(I1)) return false; // If we get here, we can hoist at least one instruction. -- cgit v1.2.3