Skip to content

Commit cd13ebb

Browse files
[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.
1 parent b53c1e4 commit cd13ebb

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
@@ -27057,7 +27057,7 @@ bool AArch64TargetLowering::getIndexedAddressParts(SDNode *N, SDNode *Op,
2705727057
// only allow an offset that's equal to the store size.
2705827058
EVT MemType = cast<MemSDNode>(N)->getMemoryVT();
2705927059
if (!Subtarget->isLittleEndian() && MemType.isVector() &&
27060-
RHSC != MemType.getStoreSize())
27060+
(uint64_t)RHSC != MemType.getStoreSize())
2706127061
return false;
2706227062
// Always emit pre-inc/post-inc addressing mode. Use negated constant offset
2706327063
// when dealing with subtraction.

0 commit comments

Comments
 (0)