diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp index f6389aad96bf8..4af0d2f089c23 100644 --- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp +++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp @@ -9307,7 +9307,7 @@ static bool shouldLowerTailCallStackArg(const MachineFunction &MF, if (CallOffset != MFI.getObjectOffset(FI)) return true; uint64_t SizeInBits = LoadNode->getMemoryVT().getFixedSizeInBits(); - if (SizeInBits / 8 != MFI.getObjectSize(FI)) + if (SizeInBits / 8 != static_cast(MFI.getObjectSize(FI))) return true; return false; }