]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
refactor: Reuse local reference in process_args (#1157)
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>
Tue, 13 Sep 2022 16:16:54 +0000 (19:16 +0300)
committerGitHub <noreply@github.com>
Tue, 13 Sep 2022 16:16:54 +0000 (18:16 +0200)
src/argprocessing.cpp

index 404623585fecb3320ed16d40882597b6a4983626..412787c51ca9673fddfba218d836451166ef668a 100644 (file)
@@ -1134,8 +1134,7 @@ process_args(Context& ctx)
 
   std::optional<Statistic> argument_error;
   for (size_t i = 1; i < args.size(); i++) {
-    const auto error =
-      process_arg(ctx, ctx.args_info, ctx.config, args, i, state);
+    const auto error = process_arg(ctx, args_info, ctx.config, args, i, state);
     if (error != Statistic::none && !argument_error) {
       argument_error = error;
     }
@@ -1490,7 +1489,7 @@ process_args(Context& ctx)
     }
     if (ctx.config.depend_mode()) {
       // The compiler is invoked with the original arguments in the depend mode.
-      ctx.args_info.depend_extra_args.push_back(*diagnostics_color_arg);
+      args_info.depend_extra_args.push_back(*diagnostics_color_arg);
     }
   }