Do not forget to mark prcessed arguments.
authorDevang Patel <dpatel@apple.com>
Fri, 14 May 2010 21:55:50 +0000 (21:55 +0000)
committerDevang Patel <dpatel@apple.com>
Fri, 14 May 2010 21:55:50 +0000 (21:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103822 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfDebug.cpp

index 6baba7255b65db41dd3358e4aa777b5726a675f2..ce13945583e2c016823989c840d36f0572e7125c 100644 (file)
@@ -2175,6 +2175,7 @@ void DwarfDebug::collectVariableInfo(const MachineFunction *MF) {
         DbgVariable *ArgVar = new DbgVariable(DV, MInsn, NULL);
         CurrentFnDbgScope->addVariable(ArgVar);
         DbgValueStartMap[MInsn] = ArgVar;
+        Processed.insert(DV);
         continue;
       }