r257014 - Replace a loop with the call that does the same thing.

Eric Christopher via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 6 18:00:55 PST 2016


Author: echristo
Date: Wed Jan  6 20:00:55 2016
New Revision: 257014

URL: http://llvm.org/viewvc/llvm-project?rev=257014&view=rev
Log:
Replace a loop with the call that does the same thing.

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=257014&r1=257013&r2=257014&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Wed Jan  6 20:00:55 2016
@@ -6058,8 +6058,7 @@ void ClangAs::ConstructJob(Compilation &
   // doesn't handle that so rather than warning about unused flags that are
   // actually used, we'll lie by omission instead.
   // FIXME: Stop lying and consume only the appropriate driver flags
-  for (const Arg *A : Args.filtered(options::OPT_W_Group))
-    A->claim();
+  Args.ClaimAllArgs(options::OPT_W_Group);
 
   CollectArgsForIntegratedAssembler(C, Args, CmdArgs,
                                     getToolChain().getDriver());




More information about the cfe-commits mailing list