aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-06-06 22:28:26 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-06-06 22:28:26 +0000
commitbabfebb4e804dbce12c7133860609aa8a2da48fd (patch)
tree8e14d1f435043f177d63fdb9183421571738bfd8
parent6b10d853039915aa24995fa7696e90323758e31b (diff)
downloadexternal_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.cpp3
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;