Skip to content

Commit 192ef09

Browse files
committed
cc: Fix name clash.
1 parent e7baba0 commit 192ef09

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/vast/Frontend/Driver.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,15 +304,15 @@ namespace vast::cc {
304304
return true;
305305
}
306306

307-
void preprocess_vast_args(argv_storage_base &cmd_args) {
308-
auto [vargs, ccargs] = vast::cc::filter_args(cmd_args);
307+
static void preprocess_vast_args(argv_storage_base &all_args) {
308+
auto [vargs, ccargs] = vast::cc::filter_args(all_args);
309309
// force no link step in case of emiting mlir file
310310
if (vast::cc::opt::emit_only_mlir(vargs)) {
311-
cmd_args.push_back("-c");
311+
all_args.push_back("-c");
312312
}
313313

314314
if (vast::cc::opt::emit_only_llvm(vargs)) {
315-
cmd_args.push_back("-emit-llvm");
315+
all_args.push_back("-emit-llvm");
316316
}
317317
}
318318

0 commit comments

Comments
 (0)