Fix off by one.

llvm-svn: 137915
This commit is contained in:
Chad Rosier 2011-08-18 01:23:31 +00:00
parent bae1c0b23b
commit ee403fa613
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}