================ @@ -1159,7 +1159,8 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC, LinkRuntimes = Args.hasFlag(options::OPT_fsanitize_link_runtime, - options::OPT_fno_sanitize_link_runtime, LinkRuntimes); + options::OPT_fno_sanitize_link_runtime, LinkRuntimes) && ---------------- pcc wrote:
The third argument to `hasFlag` is the default, you could pass in the `-r` value there. `LinkRuntimes` is only set here so you don't need to care about the previous value. https://github.com/llvm/llvm-project/pull/147905 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits