[clang] [llvm] [CodeView] Flatten cmd args in frontend for LF_BUILDINFO (PR #106369)
Saleem Abdulrasool via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 5 15:29:39 PDT 2024
================
@@ -484,8 +519,10 @@ static bool initTargetOptions(DiagnosticsEngine &Diags,
Entry.Group == frontend::IncludeDirGroup::System))
Options.MCOptions.IASSearchPaths.push_back(
Entry.IgnoreSysRoot ? Entry.Path : HSOpts.Sysroot + Entry.Path);
- Options.MCOptions.Argv0 = CodeGenOpts.Argv0;
- Options.MCOptions.CommandLineArgs = CodeGenOpts.CommandLineArgs;
+ Options.MCOptions.Argv0 =
+ CodeGenOpts.Argv0 != nullptr ? CodeGenOpts.Argv0 : "";
----------------
compnerd wrote:
```suggestion
CodeGenOpts.Argv0 ? CodeGenOpts.Argv0 : "";
```
https://github.com/llvm/llvm-project/pull/106369
More information about the cfe-commits
mailing list