mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Do not drop location info for inlined function args.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104884 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -897,6 +897,11 @@ void PromoteMem2Reg::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI,
|
||||
// Propagate any debug metadata from the store onto the dbg.value.
|
||||
if (MDNode *SIMD = SI->getMetadata("dbg"))
|
||||
DbgVal->setMetadata("dbg", SIMD);
|
||||
// Otherwise propgate debug metadata from dbg.delcare for inlined fn args.
|
||||
else if (!DISubprogram(DIVar.getContext()).
|
||||
describes(DDI->getParent()->getParent()))
|
||||
if (MDNode *MD = DDI->getMetadata("dbg"))
|
||||
DbgVal->setMetadata("dbg", MD);
|
||||
}
|
||||
|
||||
// QueuePhiNode - queues a phi-node to be added to a basic-block for a specific
|
||||
|
Reference in New Issue
Block a user