================
@@ -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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to