[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
================
@@ -2436,12 +2448,13 @@ class OutOfProcessThinBackend : public CGThinBackend {
auto &Ops = CodegenOptions;
Ops.push_back(Saver.save("-O" + Twine(C.OptLevel)));
+ TargetOptions TO = C.InitTargetOptions(Triple);
----------------
MaskRay wrote:
no blank line here, and no blank line between `auto &Ops` and `Ops.push_back`. If you like, you can add one between `Ops.push_back` and `TO`
https://github.com/llvm/llvm-project/pull/179509
More information about the cfe-commits
mailing list