From: Adrian Prantl Date: Wed, 10 Jul 2013 01:53:30 +0000 (+0000) Subject: Document a known limitation of the status quo. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=893ae83f421c20cf34622b355c5aaba32b2c019a;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index e9bafc9242e..7d87ea16f13 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(