From f4f53f08f554a6eac3cc1f6c84a7a639b5e647e4 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 13 Jul 2011 00:20:09 +0000 Subject: [PATCH] Fix obvious think-o. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135014 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86FrameLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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