diff --git a/lib/Target/X86/X86FrameLowering.cpp b/lib/Target/X86/X86FrameLowering.cpp index 87368f3a589..d30ecef0cd3 100644 --- a/lib/Target/X86/X86FrameLowering.cpp +++ b/lib/Target/X86/X86FrameLowering.cpp @@ -1072,7 +1072,7 @@ getCompactUnwindEncoding(ArrayRef Instrs, if (Src.isReg() && Src.getReg() == MachineLocation::VirtualFP) { // DW_CFA_def_cfa_register - assert(FramePointerReg != -1 && "Defining more than one frame pointer?"); + assert(FramePointerReg == -1 && "Defining more than one frame pointer?"); if (TRI->getLLVMRegNum(FramePointerReg, IsEH) != X86::EBP && TRI->getLLVMRegNum(FramePointerReg, IsEH) != X86::RBP) // The frame pointer isn't EBP/RBP. Cannot make unwind information