From 120bc21576c33188992fdb5f22459d276f2fb0fc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 29 Oct 2006 21:21:20 +0000 Subject: [PATCH] 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 --- lib/Transforms/Utils/SimplifyCFG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index de2ab0645c0..9794ed6fbb7 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(I1)) + isa(I1) || isa(I1)) return false; // If we get here, we can hoist at least one instruction. -- 2.34.1