Another missing check for debug intrinsics.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66800 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dale Johannesen 2009-03-12 17:42:45 +00:00
parent 40a07a4121
commit 80b8a62fda

View File

@ -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())