From: David Blaikie Date: Wed, 30 Sep 2015 20:37:48 +0000 (+0000) Subject: Fix -Wsign-compare warning X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=892946c873cd8bd6c251543ed0670d0ee3ab3df0 Fix -Wsign-compare warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248942 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86FrameLowering.cpp b/lib/Target/X86/X86FrameLowering.cpp index 3257daf34a5..ca5d5702813 100644 --- a/lib/Target/X86/X86FrameLowering.cpp +++ b/lib/Target/X86/X86FrameLowering.cpp @@ -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.