summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-03-12 17:42:45 +0000
committerDale Johannesen <dalej@apple.com>2009-03-12 17:42:45 +0000
commit578d8bfc3c800b81c23bef5f4d34b794fd581940 (patch)
tree4e577df74b47736b6aa978194a9b56911b164cef /llvm/lib/Transforms/Utils
parentcf35ce9d0de3d3d6221dd6b9b0f7865bc307021a (diff)
downloadbcm5719-llvm-578d8bfc3c800b81c23bef5f4d34b794fd581940.tar.gz
bcm5719-llvm-578d8bfc3c800b81c23bef5f4d34b794fd581940.zip
Another missing check for debug intrinsics.
llvm-svn: 66800
Diffstat (limited to 'llvm/lib/Transforms/Utils')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index 555e30e5f02..e3fa995de8d 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -2000,7 +2000,7 @@ bool llvm::SimplifyCFG(BasicBlock *BB) {
--BBI;
// Do not delete instructions that can have side effects, like calls
// (which may never return) and volatile loads and stores.
- if (isa<CallInst>(BBI)) break;
+ if (isa<CallInst>(BBI) && !isa<DbgInfoIntrinsic>(BBI)) break;
if (StoreInst *SI = dyn_cast<StoreInst>(BBI))
if (SI->isVolatile())
OpenPOWER on IntegriCloud