From: Eric Christopher Date: Thu, 7 Jan 2016 02:00:55 +0000 (+0000) Subject: Replace a loop with the call that does the same thing. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8fe1d0fd4ae5f09ff3c4aba05d08128677020991;p=clang Replace a loop with the call that does the same thing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@257014 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 49d45ae175..69a41d0ef3 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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());