aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/ArgList.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-13 17:25:24 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-13 17:25:24 +0000
commitc0dfd53634494872d9560bfa30c0cad6759e4cea (patch)
tree6322ede3531c896610782e9423bb213f3ca31d21 /lib/Driver/ArgList.cpp
parentab835430b4f758dd49903251c7c7f21b95933c89 (diff)
Driver: Fix think in ArgList::MakeIndex.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66908 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ArgList.cpp')
-rw-r--r--lib/Driver/ArgList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/ArgList.cpp b/lib/Driver/ArgList.cpp
index 87847c0c13..184725f796 100644
--- a/lib/Driver/ArgList.cpp
+++ b/lib/Driver/ArgList.cpp
@@ -54,7 +54,7 @@ unsigned ArgList::MakeIndex(const char *String0) {
unsigned ArgList::MakeIndex(const char *String0, const char *String1) {
unsigned Index0 = MakeIndex(String0);
unsigned Index1 = MakeIndex(String1);
- assert(Index0 == Index1 && "Unexpected non-consecutive indices!");
+ assert(Index0 + 1 == Index1 && "Unexpected non-consecutive indices!");
(void) Index1;
return Index0;
}