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:
Dale Johannesen 2009-03-13 19:23:20 +00:00
parent 17548b1eab
commit d1c135c6e6

View File

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