[clang] [lld] [llvm] [llvm][lld][clang] Delay initializing TargetOptions in LTO builds until a Triple is available (PR #179509)

Teresa Johnson via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 11 08:47:56 PST 2026


================
@@ -2089,14 +2097,15 @@ Error LTO::runThinLTO(AddStreamFn AddStream, FileCache Cache,
       ThinLTO.ModulesToCompile ? *ThinLTO.ModulesToCompile : ThinLTO.ModuleMap;
 
   auto RunBackends = [&](ThinBackendProc *BackendProcess) -> Error {
+    Triple TheTriple = RegularLTO.CombinedModule->getTargetTriple();
----------------
teresajohnson wrote:

How does this work when we are doing all ThinLTO with no regular LTO portions?

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


More information about the cfe-commits mailing list