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

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 6 09:33:39 PST 2026


================
@@ -1351,7 +1353,10 @@ runThinLTOBackend(CompilerInstance &CI, ModuleSummaryIndex *CombinedIndex,
   assert(OptLevelOrNone && "Invalid optimization level!");
   Conf.CGOptLevel = *OptLevelOrNone;
   Conf.OptLevel = CGOpts.OptimizationLevel;
-  initTargetOptions(CI, Diags, Conf.Options);
+  // llvm::codegen::RegisterCodeGenFlags F;
----------------
MaskRay wrote:

Why is F commented out

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


More information about the cfe-commits mailing list