[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
Thu Apr 2 09:25:23 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:

Okay, I think I see.

I'd like to see some testcases that show the interaction with -emit-llvm (which also uses TY_LLVM_BC, I think).

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


More information about the cfe-commits mailing list