]> granicus.if.org Git - clang/commitdiff
Replace a loop with the call that does the same thing.
authorEric Christopher <echristo@gmail.com>
Thu, 7 Jan 2016 02:00:55 +0000 (02:00 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 7 Jan 2016 02:00:55 +0000 (02:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@257014 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index 49d45ae1753b31bde2b5bb702d92cc94d2126feb..69a41d0ef33ee73ec31dd0fddf45c177bbb1b106 100644 (file)
@@ -6058,8 +6058,7 @@ void ClangAs::ConstructJob(Compilation &C, const JobAction &JA,
   // 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());