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/InlineSpiller.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/InlineSpiller.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/InlineSpiller.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/InlineSpiller.cpp b/llvm/lib/CodeGen/InlineSpiller.cpp index d5f300f9aa2..13db5f44cb0 100644 --- a/llvm/lib/CodeGen/InlineSpiller.cpp +++ b/llvm/lib/CodeGen/InlineSpiller.cpp @@ -1191,7 +1191,7 @@ void InlineSpiller::spillAroundUses(unsigned Reg) { // Debug values are not allowed to affect codegen. if (MI->isDebugValue()) { // Modify DBG_VALUE now that the value is in a spill slot. - bool IsIndirect = MI->getOperand(1).isImm(); + bool IsIndirect = MI->isIndirectDebugValue(); uint64_t Offset = IsIndirect ? MI->getOperand(1).getImm() : 0; const MDNode *MDPtr = MI->getOperand(2).getMetadata(); DebugLoc DL = MI->getDebugLoc(); |

