Fix -Wsign-compare warning
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 30 Sep 2015 20:37:48 +0000 (20:37 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 30 Sep 2015 20:37:48 +0000 (20:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248942 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86FrameLowering.cpp

index 3257daf34a58831c47bc8006de727af7c3a8cb38..ca5d57028138b906aef30dfe8cc09e6766a0374d 100644 (file)
@@ -730,7 +730,7 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF,
     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.