[cfe-commits] r119498 - /cfe/trunk/lib/Driver/Tools.cpp
Rafael Espindola
rafael.espindola at gmail.com
Wed Nov 17 07:16:14 PST 2010
Author: rafael
Date: Wed Nov 17 09:16:14 2010
New Revision: 119498
URL: http://llvm.org/viewvc/llvm-project?rev=119498&view=rev
Log:
Silence warning for "clang -O2 -O0 -c foo.c -o foo.o.
Fixes PR8607.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=119498&r1=119497&r2=119498&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Nov 17 09:16:14 2010
@@ -1147,6 +1147,9 @@
A->render(Args, CmdArgs);
}
+ // Silence warning for "clang -O2 -O0 -c foo.c -o foo.o"
+ Args.ClaimAllArgs(options::OPT_O_Group);
+
Args.AddAllArgs(CmdArgs, options::OPT_W_Group);
Args.AddLastArg(CmdArgs, options::OPT_pedantic);
Args.AddLastArg(CmdArgs, options::OPT_pedantic_errors);
More information about the cfe-commits
mailing list