aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2023-08-23 18:30:07 -0700
committerFangrui Song <i@maskray.me>2023-08-23 18:30:07 -0700
commit749f36dae311000e1d69351707f4f24a72090c94 (patch)
tree8e0749c206bbb0312c12df91926b74fe1440881d
parent7d889c044a3009b4aa81a58e66cc68eb0bf873e6 (diff)
downloadllvm-749f36dae311000e1d69351707f4f24a72090c94.zip
llvm-749f36dae311000e1d69351707f4f24a72090c94.tar.gz
llvm-749f36dae311000e1d69351707f4f24a72090c94.tar.bz2
[LoongArch] Fix Subtarget.is64Bit
-rw-r--r--llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp b/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
index 35dcd668..2f8ce57 100644
--- a/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+++ b/llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
@@ -143,7 +143,7 @@ LoongArchTargetLowering::LoongArchTargetLowering(const TargetMachine &TM,
// Set operations for LA32 only.
- if (!Subtarget.is64Bit) {
+ if (!Subtarget.is64Bit()) {
setOperationAction(ISD::READ_REGISTER, MVT::i64, Custom);
setOperationAction(ISD::WRITE_REGISTER, MVT::i64, Custom);
setOperationAction(ISD::INTRINSIC_VOID, MVT::i64, Custom);