mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
Debug info: Fix PR16736 and rdar://problem/14990587.
A DBG_VALUE is register-indirect iff the first operand is a register _and_ the second operand is an immediate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190821 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -457,9 +457,10 @@ bool LDVImpl::handleDebugValue(MachineInstr *MI, SlotIndex Idx) {
|
||||
}
|
||||
|
||||
// Get or create the UserValue for (variable,offset).
|
||||
bool IsIndirect = MI->getOperand(1).isImm();
|
||||
bool IsIndirect = MI->isIndirectDebugValue();
|
||||
unsigned Offset = IsIndirect ? MI->getOperand(1).getImm() : 0;
|
||||
const MDNode *Var = MI->getOperand(2).getMetadata();
|
||||
//here.
|
||||
UserValue *UV = getUserValue(Var, Offset, IsIndirect, MI->getDebugLoc());
|
||||
UV->addDef(Idx, MI->getOperand(0));
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user