[clang] [clang][Driver] Ensure intermediate bitcode files are written according to `/Fo` (PR #189977)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 6 13:09:31 PDT 2026


================
@@ -6629,6 +6629,12 @@ const char *Driver::GetNamedOutputPath(Compilation &C, const JobAction &JA,
             ->getValue();
     NamedOutput =
         MakeCLOutputFilename(C.getArgs(), Val, BaseName, types::TY_Object);
+  } else if ((JA.getType() == types::TY_LLVM_BC ||
----------------
efriedma-quic wrote:

Looking again, I think I'd prefer to merge this with the code on line 6577.  If the only difference is the last argument to the MakeCLOutputFilename call, it's better to make that a conditional instead of duplicating the rest of the argument handling logic.

https://github.com/llvm/llvm-project/pull/189977


More information about the cfe-commits mailing list