diff options
Diffstat (limited to 'lib/Driver/ArgList.cpp')
-rw-r--r-- | lib/Driver/ArgList.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Driver/ArgList.cpp b/lib/Driver/ArgList.cpp index c76356ca20..6f7cbb6062 100644 --- a/lib/Driver/ArgList.cpp +++ b/lib/Driver/ArgList.cpp @@ -51,8 +51,9 @@ void ArgList::eraseArg(OptSpecifier Id) { if ((*it)->getOption().matches(Id)) { it = Args.erase(it); ie = end(); - } else + } else { ++it; + } } } |