Fix break in r183446 - helps to increment the iterator in a loop

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183454 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Blaikie 2013-06-06 22:28:26 +00:00
parent 6b10d85303
commit babfebb4e8

View File

@ -1645,8 +1645,9 @@ void DwarfDebug::addScopeVariable(LexicalScope *LS, DbgVariable *Var) {
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;