When deleting a basic block, remove call edges only for non-intrinsics.

llvm-svn: 132803
This commit is contained in:
John McCall 2011-06-09 20:31:09 +00:00
parent 4b5665a1f7
commit 58fb52c6c7
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ void PruneEH::DeleteBasicBlock(BasicBlock *BB) {
for (BasicBlock::iterator I = BB->end(), E = BB->begin(); I != E; ) {
--I;
if (CallInst *CI = dyn_cast<CallInst>(I)) {
if (!isa<DbgInfoIntrinsic>(I))
if (!isa<IntrinsicInst>(I))
CGN->removeCallEdgeFor(CI);
} else if (InvokeInst *II = dyn_cast<InvokeInst>(I))
CGN->removeCallEdgeFor(II);