aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/ArgList.cpp
diff options
context:
space:
mode:
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;
}