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

Paul Kirth via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 13 09:29:56 PST 2026


================
@@ -2366,7 +2378,8 @@ class OutOfProcessThinBackend : public CGThinBackend {
       const FunctionImporter::ImportMapTy &ImportList,
       const FunctionImporter::ExportSetTy &ExportList,
       const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> &ResolvedODR,
-      MapVector<StringRef, BitcodeModule> &ModuleMap) override {
+      MapVector<StringRef, BitcodeModule> &ModuleMap,
+      class Triple TheTriple) override {
----------------
ilovepi wrote:

It was needed for some resolution. I just used the suggestion from clangd, but `llvm::Triple` also works, so I'll go with that.

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


More information about the cfe-commits mailing list