projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c94454
)
Fix SimplifyCFG/2006-10-29-InvokeCrash.ll, a crash compiling QT.
author
Chris Lattner
<sabre@nondot.org>
Sun, 29 Oct 2006 21:21:20 +0000
(21:21 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 29 Oct 2006 21:21:20 +0000
(21:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31284
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/SimplifyCFG.cpp
b/lib/Transforms/Utils/SimplifyCFG.cpp
index de2ab0645c0775e49daafadaeb7963fb156f966e..9794ed6fbb74b69a66a7379986ff5ed17f406e65 100644
(file)
--- 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.