Skip to content

Commit ea8555b

Browse files
authored
[AArch64] Avoid warning about comparison of different signedness. NFC. (#159337)
This fixes the following warning when compiled with GCC: ../lib/Target/AArch64/AArch64ISelLowering.cpp: In function ‘bool shouldLowerTailCallStackArg(const llvm::MachineFunction&, const llvm::CCValAssign&, llvm::SDValue, llvm::ISD::ArgFlagsTy, int)’: ../lib/Target/AArch64/AArch64ISelLowering.cpp:9310: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘int64_t’ {aka ‘long int’} [-Wsign-compare] 9310 | if (SizeInBits / 8 != MFI.getObjectSize(FI)) |
1 parent 4ff113f commit ea8555b

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
@@ -9306,7 +9306,7 @@ static bool shouldLowerTailCallStackArg(const MachineFunction &MF,
93069306
if (CallOffset != MFI.getObjectOffset(FI))
93079307
return true;
93089308
uint64_t SizeInBits = LoadNode->getMemoryVT().getFixedSizeInBits();
9309-
if (SizeInBits / 8 != MFI.getObjectSize(FI))
9309+
if (SizeInBits / 8 != static_cast<uint64_t>(MFI.getObjectSize(FI)))
93109310
return true;
93119311
return false;
93129312
}

0 commit comments

Comments
 (0)