================ @@ -214,6 +214,14 @@ static void parseCodeGenArgs(Fortran::frontend::CodeGenOptions &opts, clang::driver::options::OPT_fno_loop_versioning, false)) opts.LoopVersioning = 1; + opts.AliasAnalysis = false; + if (auto *arg = + args.getLastArg(clang::driver::options::OPT_falias_analysis, + clang::driver::options::OPT_fno_alias_analysis)) { + if (arg->getOption().matches(clang::driver::options::OPT_falias_analysis)) + opts.AliasAnalysis = true; + } ---------------- banach-space wrote:
Wouldn't `hasFlag` work here? https://github.com/llvm/llvm-project/pull/68595 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits