[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
Sat Feb 14 15:53:34 PST 2026


================
@@ -236,7 +240,8 @@ createTargetMachine(const Config &Conf, const Target *TheTarget, Module &M) {
   else
     CodeModel = M.getCodeModel();
 
-  TargetOptions TargetOpts = Conf.Options;
+  TargetOptions TargetOpts = Conf.InitTargetOptions(TheTriple);
+
----------------
MaskRay wrote:

unneeded blank line

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


More information about the cfe-commits mailing list