================
@@ -1882,12 +1882,14 @@ const char *tools::SplitDebugName(const JobAction &JA, 
const ArgList &Args,
   if (const Arg *A = Args.getLastArg(options::OPT_dumpdir)) {
     T = A->getValue();
   } else {
-    Arg *FinalOutput = Args.getLastArg(options::OPT_o, options::OPT__SLASH_o);
-    if (FinalOutput && Args.hasArg(options::OPT_c)) {
-      T = FinalOutput->getValue();
+    Arg *FinalOutput = Args.getLastArg(options::OPT_o, options::OPT__SLASH_o,
+                                       options::OPT__SLASH_Fo);
+    if (FinalOutput && Args.hasArg(options::OPT_c) && Output.isFilename()) {
----------------
wenju-he wrote:

FinalOutput is now only used for null check. Consider change getLastArg to 
hasArg?

https://github.com/llvm/llvm-project/pull/199613
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to