[clang] [lld] [llvm] [llvm][lld][clang] Delay initializing TargetOptions in LTO builds until a Triple is available (PR #179509)
Nikita Popov via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 12 06:08:11 PST 2026
================
@@ -1533,12 +1539,12 @@ class InProcessThinBackend : public CGThinBackend {
const FunctionImporter::ExportSetTy &ExportList,
const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> &ResolvedODR,
const GVSummaryMapTy &DefinedGlobals,
- MapVector<StringRef, BitcodeModule> &ModuleMap) {
+ MapVector<StringRef, BitcodeModule> &ModuleMap, Triple TheTriple) {
auto ModuleID = BM.getModuleIdentifier();
+ LTOLLVMContext BackendContext(Conf);
----------------
nikic wrote:
Why did these variables have to be moved outside the lambdas?
https://github.com/llvm/llvm-project/pull/179509
More information about the cfe-commits
mailing list