]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commitdiff
Document a known limitation of the status quo.
authorAdrian Prantl <aprantl@apple.com>
Wed, 10 Jul 2013 01:53:30 +0000 (01:53 +0000)
committerAdrian Prantl <aprantl@apple.com>
Wed, 10 Jul 2013 01:53:30 +0000 (01:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185992 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

index e9bafc9242e680bf851d2df2cb9880a574d4bcd8..7d87ea16f13b9d057b8ac71e408ad1ccf46a3f0e 100644 (file)
@@ -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(