mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
One more place where debug info affects codegen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66930 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
17548b1eab
commit
d1c135c6e6
@ -11144,7 +11144,8 @@ static bool isSafeToLoadUnconditionally(Value *V, Instruction *ScanFrom) {
|
||||
|
||||
// If we see a free or a call (which might do a free) the pointer could be
|
||||
// marked invalid.
|
||||
if (isa<FreeInst>(BBI) || isa<CallInst>(BBI))
|
||||
if (isa<FreeInst>(BBI) ||
|
||||
(isa<CallInst>(BBI) && !isa<DbgInfoIntrinsic>(BBI)))
|
||||
return false;
|
||||
|
||||
if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) {
|
||||
|
Loading…
Reference in New Issue
Block a user