From 757908e545e720a13c5391ce2eb399c4026859e2 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Wed, 30 Sep 2015 20:37:48 +0000 Subject: [PATCH] Fix -Wsign-compare warning llvm-svn: 248942 --- llvm/lib/Target/X86/X86FrameLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/X86FrameLowering.cpp b/llvm/lib/Target/X86/X86FrameLowering.cpp index 3257daf34a58..ca5d57028138 100644 --- a/llvm/lib/Target/X86/X86FrameLowering.cpp +++ b/llvm/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.