summaryrefslogtreecommitdiff
path: root/llvm/lib/TargetParser
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2025-09-19 21:49:13 +0900
committerGitHub <noreply@github.com>2025-09-19 12:49:13 +0000
commitcc680fc50c3b42bef920a5411cf902e6a6a9c4d4 (patch)
tree9a7156a36baed96306650f32053f4928e9260e9b /llvm/lib/TargetParser
parent9113592312357d777a4e65833c2887f737bc9e6a (diff)
X86: Avoid using isArch64Bit for 64-bit checks (#157412)
Just directly check x86_64. isArch64Bit just adds extra steps around this.
Diffstat (limited to 'llvm/lib/TargetParser')
-rw-r--r--llvm/lib/TargetParser/TargetDataLayout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/TargetParser/TargetDataLayout.cpp b/llvm/lib/TargetParser/TargetDataLayout.cpp
index e222588ea389..cea246e9527b 100644
--- a/llvm/lib/TargetParser/TargetDataLayout.cpp
+++ b/llvm/lib/TargetParser/TargetDataLayout.cpp
@@ -379,7 +379,7 @@ static std::string computeSystemZDataLayout(const Triple &TT) {
}
static std::string computeX86DataLayout(const Triple &TT) {
- bool Is64Bit = TT.getArch() == Triple::x86_64;
+ bool Is64Bit = TT.isX86_64();
// X86 is little endian
std::string Ret = "e";