diff options
author | Adrian Prantl <aprantl@apple.com> | 2013-09-16 23:29:03 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2013-09-16 23:29:03 +0000 |
commit | db3e26d193db3eff180af62ea78efedc5c43522d (patch) | |
tree | 94869c45d317e83401aa6e7417b9628222410644 /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | 1efb418c9dc8315db607b852e601e2043ec58759 (diff) | |
download | bcm5719-llvm-db3e26d193db3eff180af62ea78efedc5c43522d.tar.gz bcm5719-llvm-db3e26d193db3eff180af62ea78efedc5c43522d.zip |
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.
llvm-svn: 190821
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugVariables.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp index 12164450825..4b8395bae7d 100644 --- a/llvm/lib/CodeGen/LiveDebugVariables.cpp +++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp @@ -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; |