Skip to content

Commit 93408f5

Browse files
authored
[AArch64] determineSVEStackSizes - fix MSVC signed/unsigned comparison failure. NFC. (#162059)
1 parent 23f010f commit 93408f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64FrameLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2878,7 +2878,7 @@ static SVEStackSizes determineSVEStackSizes(MachineFunction &MF,
28782878
StackTop += MFI.getObjectSize(FI);
28792879
StackTop = alignTo(StackTop, Alignment);
28802880

2881-
assert(StackTop < std::numeric_limits<int64_t>::max() &&
2881+
assert(StackTop < (uint64_t)std::numeric_limits<int64_t>::max() &&
28822882
"SVE StackTop far too large?!");
28832883

28842884
int64_t Offset = -int64_t(StackTop);

0 commit comments

Comments
 (0)