From: Daniel Dunbar Date: Fri, 13 Mar 2009 17:25:24 +0000 (+0000) Subject: Driver: Fix think in ArgList::MakeIndex. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0dfd53634494872d9560bfa30c0cad6759e4cea;p=clang Driver: Fix think in ArgList::MakeIndex. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66908 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; }