aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2011-08-18 02:08:52 +0000
committerChad Rosier <mcrosier@apple.com>2011-08-18 02:08:52 +0000
commit7e9e74b0cc298f206dcb173bd056da8556010202 (patch)
tree46766147af08291aca7e1f6dd5fd4bea1a702f07 /lib/Driver/Tools.cpp
parentf19eef86422b82e3415c56077f85085e0074e893 (diff)
No seriously, remove the unsupported warning options.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137918 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r--lib/Driver/Tools.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index 36affd6494..295ab32aee 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", 2)) {
+ if (strncmp(Option, "-W", 2)) {
++it;
continue;
}