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

llvm-svn: 31284
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index de2ab06..9794ed6 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -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.