One more place where debug info affects codegen.

llvm-svn: 66930
This commit is contained in:
Dale Johannesen 2009-03-13 19:23:20 +00:00
parent a01646efda
commit c65830519e
1 changed files with 2 additions and 1 deletions

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