diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-06-06 22:28:26 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-06-06 22:28:26 +0000 |
commit | babfebb4e804dbce12c7133860609aa8a2da48fd (patch) | |
tree | 8e14d1f435043f177d63fdb9183421571738bfd8 | |
parent | 6b10d853039915aa24995fa7696e90323758e31b (diff) | |
download | external_llvm-babfebb4e804dbce12c7133860609aa8a2da48fd.zip external_llvm-babfebb4e804dbce12c7133860609aa8a2da48fd.tar.gz external_llvm-babfebb4e804dbce12c7133860609aa8a2da48fd.tar.bz2 |
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
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 523f545..7915e2f 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -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; |