Skip to content

Commit 77bc254

Browse files
[AArch64] Fix build failure with -Werror (#144749)
PR#144387 caused buildbot failures with -Werror due to a comparison between signed and unsigned types. Fix this with an explicit cast.
1 parent 2a8c65e commit 77bc254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27081,7 +27081,7 @@ bool AArch64TargetLowering::getIndexedAddressParts(SDNode *N, SDNode *Op,
2708127081
// only allow an offset that's equal to the store size.
2708227082
EVT MemType = cast<MemSDNode>(N)->getMemoryVT();
2708327083
if (!Subtarget->isLittleEndian() && MemType.isVector() &&
27084-
RHSC != MemType.getStoreSize())
27084+
(uint64_t)RHSC != MemType.getStoreSize())
2708527085
return false;
2708627086
// Always emit pre-inc/post-inc addressing mode. Use negated constant offset
2708727087
// when dealing with subtraction.

0 commit comments

Comments
 (0)