[clang] [llvm] [LFI][X86] Add X86 LFI target and system instruction rewrites (PR #189569)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 15 10:09:41 PDT 2026


================
@@ -1245,7 +1249,8 @@ class Triple {
 
   /// True if the target uses TLSDESC by default.
   bool hasDefaultTLSDESC() const {
-    return isAArch64() || (isAndroid() && isRISCV64()) || isOSFuchsia();
+    return isAArch64() || (isAndroid() && isRISCV64()) || isOSFuchsia() ||
+           (isX86() && isLFI());
----------------
MaskRay wrote:

Why? Should at least be mentioned in the PR description

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


More information about the cfe-commits mailing list