[llvm] [AArch64] Fix build failure with -Werror (PR #144749)
John Brawn via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 18 09:38:04 PDT 2025
https://github.com/john-brawn-arm created https://github.com/llvm/llvm-project/pull/144749
PR#144387 caused buildbot failures with -Werror due to a comparison between signed and unsigned types. Fix this with an explicit cast.
>From cd13ebbc95f80daaa15a2d5e7e94692343addd75 Mon Sep 17 00:00:00 2001
From: John Brawn <john.brawn at arm.com>
Date: Wed, 18 Jun 2025 17:31:32 +0100
Subject: [PATCH] [AArch64] Fix build failure with -Werror
PR#144387 caused buildbot failures with -Werror due to a comparison
between signed and unsigned types. Fix this with an explicit cast.
---
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index 22c497d3de647..76d88aa7918bb 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -27057,7 +27057,7 @@ bool AArch64TargetLowering::getIndexedAddressParts(SDNode *N, SDNode *Op,
// only allow an offset that's equal to the store size.
EVT MemType = cast<MemSDNode>(N)->getMemoryVT();
if (!Subtarget->isLittleEndian() && MemType.isVector() &&
- RHSC != MemType.getStoreSize())
+ (uint64_t)RHSC != MemType.getStoreSize())
return false;
// Always emit pre-inc/post-inc addressing mode. Use negated constant offset
// when dealing with subtraction.
More information about the llvm-commits
mailing list