[llvm] c82957e - ARM: fix vacuously true assertion to actually check what it should. NFC.
Tim Northover via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 29 06:24:23 PDT 2021
Author: Tim Northover
Date: 2021-06-29T14:24:03+01:00
New Revision: c82957e79236f9f5ef2598ab86138d43fd987932
URL: https://github.com/llvm/llvm-project/commit/c82957e79236f9f5ef2598ab86138d43fd987932
DIFF: https://github.com/llvm/llvm-project/commit/c82957e79236f9f5ef2598ab86138d43fd987932.diff
LOG: ARM: fix vacuously true assertion to actually check what it should. NFC.
Added:
Modified:
llvm/lib/Target/ARM/ARMFrameLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARM/ARMFrameLowering.cpp b/llvm/lib/Target/ARM/ARMFrameLowering.cpp
index 42a99d7b4843..a2ad62631329 100644
--- a/llvm/lib/Target/ARM/ARMFrameLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMFrameLowering.cpp
@@ -1011,7 +1011,7 @@ void ARMFrameLowering::emitEpilogue(MachineFunction &MF,
}
if (ReservedArgStack || IncomingArgStackToRestore) {
- assert(ReservedArgStack + IncomingArgStackToRestore >= 0 &&
+ assert((int)ReservedArgStack + IncomingArgStackToRestore >= 0 &&
"attempting to restore negative stack amount");
emitSPUpdate(isARM, MBB, MBBI, dl, TII,
ReservedArgStack + IncomingArgStackToRestore,
More information about the llvm-commits
mailing list