Changes in directory llvm/lib/Transforms/Utils:

SimplifyCFG.cpp updated: 1.101 -> 1.102
---
Log message:

Fix SimplifyCFG/2006-10-29-InvokeCrash.ll, a crash compiling QT.


---
Diffs of the changes:  (+1 -1)

 SimplifyCFG.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff -u llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.101 
llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.102
--- llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.101     Fri Oct 20 02:07:24 2006
+++ llvm/lib/Transforms/Utils/SimplifyCFG.cpp   Sun Oct 29 15:21:20 2006
@@ -853,7 +853,7 @@
 
   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.



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to