commit | f01f8474e2ae14bba4855f20dcc59f3a8e23d730 | [log] [tgz] |
---|---|---|
author | Chad Rosier <mcrosier@apple.com> | Thu Aug 18 01:23:31 2011 +0000 |
committer | Chad Rosier <mcrosier@apple.com> | Thu Aug 18 01:23:31 2011 +0000 |
tree | e47d67d50c55c259c7ff42e0bd599740577e597d | |
parent | 04225c1409d1cc9fe0aca758ab0b6f1d213ce267 [diff] |
Fix off by one. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137915 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index fa0db2c..36affd6 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp
@@ -2451,7 +2451,7 @@ const char *Option = *it; // We only remove warning options. - if (!strncmp(Option, "-W", 3)) { + if (!strncmp(Option, "-W", 2)) { ++it; continue; }