summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2013-09-16 23:29:03 +0000
committerAdrian Prantl <aprantl@apple.com>2013-09-16 23:29:03 +0000
commit818833f27929d650b4323774cd3660860588f687 (patch)
tree7ef5607518c2cf454483130b61d27a823ecb4a5d /lib/CodeGen/LiveDebugVariables.cpp
parent4b28ee208895d2a9c98b9e63d0c39985500e9291 (diff)
downloadllvm-818833f27929d650b4323774cd3660860588f687.tar.gz
llvm-818833f27929d650b4323774cd3660860588f687.tar.bz2
llvm-818833f27929d650b4323774cd3660860588f687.tar.xz
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
Diffstat (limited to 'lib/CodeGen/LiveDebugVariables.cpp')
-rw-r--r--lib/CodeGen/LiveDebugVariables.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveDebugVariables.cpp b/lib/CodeGen/LiveDebugVariables.cpp
index 1216445082..4b8395bae7 100644
--- a/lib/CodeGen/LiveDebugVariables.cpp
+++ b/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;