aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-06-09 20:31:09 +0000
committerJohn McCall <rjmccall@apple.com>2011-06-09 20:31:09 +0000
commitca5bec22e0e04d0712f5ac78fc6aeceabcf80955 (patch)
tree35787944ab875469753466547396890326b001b5 /lib/Transforms
parenta1000742d28f33dd8dd9858e64282e7749c0bd64 (diff)
downloadexternal_llvm-ca5bec22e0e04d0712f5ac78fc6aeceabcf80955.zip
external_llvm-ca5bec22e0e04d0712f5ac78fc6aeceabcf80955.tar.gz
external_llvm-ca5bec22e0e04d0712f5ac78fc6aeceabcf80955.tar.bz2
When deleting a basic block, remove call edges only for non-intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132803 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/IPO/PruneEH.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/PruneEH.cpp b/lib/Transforms/IPO/PruneEH.cpp
index 496b96a..2f3baeb 100644
--- a/lib/Transforms/IPO/PruneEH.cpp
+++ b/lib/Transforms/IPO/PruneEH.cpp
@@ -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);