mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-15 22:25:31 +00:00
Distinguish between two copies of one inlined variable. Take 2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137253 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -770,8 +770,15 @@ static void fixupLineNumbers(Function *Fn, Function::iterator FI,
|
||||
for (BasicBlock::iterator BI = FI->begin(), BE = FI->end();
|
||||
BI != BE; ++BI) {
|
||||
DebugLoc DL = BI->getDebugLoc();
|
||||
if (!DL.isUnknown())
|
||||
if (!DL.isUnknown()) {
|
||||
BI->setDebugLoc(updateInlinedAtInfo(DL, TheCallDL, BI->getContext()));
|
||||
if (DbgValueInst *DVI = dyn_cast<DbgValueInst>(BI)) {
|
||||
LLVMContext &Ctx = BI->getContext();
|
||||
MDNode *InlinedAt = BI->getDebugLoc().getInlinedAt(Ctx);
|
||||
DVI->setOperand(2, createInlinedVariable(DVI->getVariable(),
|
||||
InlinedAt, Ctx));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user