[clang] [llvm] [Driver,CodeGen] Report error when enabling 64-bit-only features on non-64-bit arch (PR #101151)

Shengchen Kan via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 30 19:10:12 PDT 2024


================
@@ -266,13 +270,24 @@ void x86::getX86TargetFeatures(const Driver &D, const llvm::Triple &Triple,
     }
 
     bool IsNegative = Name.starts_with("no-");
+
+    bool Not64Bit = ArchType != llvm::Triple::x86_64;
----------------
KanRobert wrote:

It would not. We check the option here, not the feature list.

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


More information about the llvm-commits mailing list