[llvm] r183454 - Fix break in r183446 - helps to increment the iterator in a loop
David Blaikie
dblaikie at gmail.com
Thu Jun 6 15:28:26 PDT 2013
Author: dblaikie
Date: Thu Jun 6 17:28:26 2013
New Revision: 183454
URL: http://llvm.org/viewvc/llvm-project?rev=183454&view=rev
Log:
Fix break in r183446 - helps to increment the iterator in a loop
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=183454&r1=183453&r2=183454&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Thu Jun 6 17:28:26 2013
@@ -1645,8 +1645,9 @@ void DwarfDebug::addScopeVariable(Lexica
if (CurNum == 0)
break;
// A later indexed parameter has been found, insert immediately before it.
- if (CurNum < ArgNum)
+ if (CurNum > ArgNum)
break;
+ ++I;
}
Vars.insert(I, Var);
return;
More information about the llvm-commits
mailing list