[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 17:09:24 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:
Thanks for checking that. I traced through the code to see where this gets set up, see my other comment
https://github.com/llvm/llvm-project/pull/179509
More information about the cfe-commits
mailing list