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(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.