mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 07:24:25 +00:00
Use DBG_VALUE location while inserting DBG_VALUE during alloca promotion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134568 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1164,12 +1164,12 @@ public:
|
|||||||
DbgVal = DIB->insertDbgValueIntrinsic(SI->getOperand(0), 0,
|
DbgVal = DIB->insertDbgValueIntrinsic(SI->getOperand(0), 0,
|
||||||
DIVariable(DVI->getVariable()),
|
DIVariable(DVI->getVariable()),
|
||||||
SI);
|
SI);
|
||||||
DbgVal->setDebugLoc(SI->getDebugLoc());
|
DbgVal->setDebugLoc(DVI->getDebugLoc());
|
||||||
} else if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) {
|
} else if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) {
|
||||||
Instruction *DbgVal =
|
Instruction *DbgVal =
|
||||||
DIB->insertDbgValueIntrinsic(LI->getOperand(0), 0,
|
DIB->insertDbgValueIntrinsic(LI->getOperand(0), 0,
|
||||||
DIVariable(DVI->getVariable()), LI);
|
DIVariable(DVI->getVariable()), LI);
|
||||||
DbgVal->setDebugLoc(LI->getDebugLoc());
|
DbgVal->setDebugLoc(DVI->getDebugLoc());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user