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 | 818833f27929d650b4323774cd3660860588f687 (patch) | |
tree | 7ef5607518c2cf454483130b61d27a823ecb4a5d /lib/CodeGen/SelectionDAG/FastISel.cpp | |
parent | 4b28ee208895d2a9c98b9e63d0c39985500e9291 (diff) | |
download | external_llvm-818833f27929d650b4323774cd3660860588f687.zip external_llvm-818833f27929d650b4323774cd3660860588f687.tar.gz external_llvm-818833f27929d650b4323774cd3660860588f687.tar.bz2 |
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/SelectionDAG/FastISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/FastISel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp index b4ac948f..b25e031 100644 --- a/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -688,6 +688,7 @@ bool FastISel::SelectCall(const User *I) { .addFPImm(CF).addImm(DI->getOffset()) .addMetadata(DI->getVariable()); } else if (unsigned Reg = lookUpRegForValue(V)) { + // FIXME: This does not handle register-indirect values at offset 0. bool IsIndirect = DI->getOffset() != 0; BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, II, IsIndirect, Reg, DI->getOffset(), DI->getVariable()); |