[llvm] r202992 - Fix clang -Werror build break due to mismatched sign comparison.
David Blaikie
dblaikie at gmail.com
Wed Mar 5 10:53:36 PST 2014
Author: dblaikie
Date: Wed Mar 5 12:53:36 2014
New Revision: 202992
URL: http://llvm.org/viewvc/llvm-project?rev=202992&view=rev
Log:
Fix clang -Werror build break due to mismatched sign comparison.
Originally committed in r202985.
Modified:
llvm/trunk/lib/Target/ARM/Thumb1FrameLowering.cpp
Modified: llvm/trunk/lib/Target/ARM/Thumb1FrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/Thumb1FrameLowering.cpp?rev=202992&r1=202991&r2=202992&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/Thumb1FrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/Thumb1FrameLowering.cpp Wed Mar 5 12:53:36 2014
@@ -327,7 +327,7 @@ void Thumb1FrameLowering::emitEpilogue(M
unsigned Align = MF.getTarget().getFrameLowering()->getStackAlignment();
unsigned ArgRegsSaveSize = AFI->getArgRegsSaveSize(Align);
int NumBytes = (int)MFI->getStackSize();
- assert(NumBytes >= ArgRegsSaveSize &&
+ assert((unsigned)NumBytes >= ArgRegsSaveSize &&
"ArgRegsSaveSize is included in NumBytes");
const uint16_t *CSRegs = RegInfo->getCalleeSavedRegs();
unsigned FramePtr = RegInfo->getFrameRegister(MF);
More information about the llvm-commits
mailing list