summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2013-07-10 01:53:30 +0000
committerAdrian Prantl <aprantl@apple.com>2013-07-10 01:53:30 +0000
commit893ae83f421c20cf34622b355c5aaba32b2c019a (patch)
treed89a35ea5d3e3f7b24953b62ccb12b3907a2196c /lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
parent8cf79f86b7861de21e76209137c6498bad26d2b6 (diff)
downloadllvm-893ae83f421c20cf34622b355c5aaba32b2c019a.tar.gz
llvm-893ae83f421c20cf34622b355c5aaba32b2c019a.tar.bz2
llvm-893ae83f421c20cf34622b355c5aaba32b2c019a.tar.xz
Document a known limitation of the status quo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185992 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index e9bafc9242..7d87ea16f1 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -4421,10 +4421,12 @@ SelectionDAGBuilder::EmitFuncArgumentDbgValue(const Value *V, MDNode *Variable,
if (!Op)
return false;
+ // FIXME: This does not handle register-indirect values at offset 0.
+ bool IsIndirect = Offset != 0;
if (Op->isReg())
FuncInfo.ArgDbgValues.push_back(BuildMI(MF, getCurDebugLoc(),
TII->get(TargetOpcode::DBG_VALUE),
- /* IsIndirect */ Offset != 0,
+ IsIndirect,
Op->getReg(), Offset, Variable));
else
FuncInfo.ArgDbgValues.push_back(