[llvm] r248942 - Fix -Wsign-compare warning

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 30 13:37:48 PDT 2015


Author: dblaikie
Date: Wed Sep 30 15:37:48 2015
New Revision: 248942

URL: http://llvm.org/viewvc/llvm-project?rev=248942&view=rev
Log:
Fix -Wsign-compare warning

Modified:
    llvm/trunk/lib/Target/X86/X86FrameLowering.cpp

Modified: llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FrameLowering.cpp?rev=248942&r1=248941&r2=248942&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FrameLowering.cpp Wed Sep 30 15:37:48 2015
@@ -730,7 +730,7 @@ void X86FrameLowering::emitPrologue(Mach
     if (!IsFunclet)
       MFI->setOffsetAdjustment(-NumBytes);
     else
-      assert(MFI->getOffsetAdjustment() == -NumBytes &&
+      assert(MFI->getOffsetAdjustment() == -(int)NumBytes &&
              "should calculate same local variable offset for funclets");
 
     // Save EBP/RBP into the appropriate stack slot.




More information about the llvm-commits mailing list