mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
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:
parent
40a07a4121
commit
80b8a62fda
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user