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.