mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
When converting dbg.declare to dbg.value, attach promoted store's debug metadata to dbg.value
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94634 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -883,7 +883,10 @@ void PromoteMem2Reg::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI,
|
||||
|
||||
if (!DIF)
|
||||
DIF = new DIFactory(*SI->getParent()->getParent()->getParent());
|
||||
DIF->InsertDbgValueIntrinsic(SI->getOperand(0), Offset, DIVar, SI);
|
||||
Instruction *DbgVal = DIF->InsertDbgValueIntrinsic(SI->getOperand(0), Offset,
|
||||
DIVar, SI);
|
||||
if (MDNode *SIMD = SI->getMetadata("dbg"))
|
||||
DbgVal->setMetadata("dbg", SIMD);
|
||||
}
|
||||
|
||||
// QueuePhiNode - queues a phi-node to be added to a basic-block for a specific
|
||||
|
Reference in New Issue
Block a user