diff options
author | Chad Rosier <mcrosier@apple.com> | 2011-08-18 01:23:31 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2011-08-18 01:23:31 +0000 |
commit | f01f8474e2ae14bba4855f20dcc59f3a8e23d730 (patch) | |
tree | e47d67d50c55c259c7ff42e0bd599740577e597d /lib/Driver/Tools.cpp | |
parent | 04225c1409d1cc9fe0aca758ab0b6f1d213ce267 (diff) |
Fix off by one.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137915 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index fa0db2cd51..36affd6494 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -2451,7 +2451,7 @@ void darwin::CC1::RemoveCC1UnsupportedArgs(ArgStringList &CmdArgs) const { const char *Option = *it; // We only remove warning options. - if (!strncmp(Option, "-W", 3)) { + if (!strncmp(Option, "-W", 2)) { ++it; continue; } |