mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-16 08:29:08 +00:00
Use DBG_VALUE location while inserting DBG_VALUE during alloca promotion.
llvm-svn: 134568
This commit is contained in:
parent
7f9c0d5ac8
commit
4011cc12b8
@ -1164,12 +1164,12 @@ public:
|
||||
DbgVal = DIB->insertDbgValueIntrinsic(SI->getOperand(0), 0,
|
||||
DIVariable(DVI->getVariable()),
|
||||
SI);
|
||||
DbgVal->setDebugLoc(SI->getDebugLoc());
|
||||
DbgVal->setDebugLoc(DVI->getDebugLoc());
|
||||
} else if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) {
|
||||
Instruction *DbgVal =
|
||||
DIB->insertDbgValueIntrinsic(LI->getOperand(0), 0,
|
||||
DIVariable(DVI->getVariable()), LI);
|
||||
DbgVal->setDebugLoc(LI->getDebugLoc());
|
||||
DbgVal->setDebugLoc(DVI->getDebugLoc());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user