From 0ed9f1fd8687ad32364b56898e6ebe1515e0e41c Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 16 May 2013 04:59:17 +0000 Subject: [PATCH] Delete dead code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181982 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86FrameLowering.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Target/X86/X86FrameLowering.cpp b/lib/Target/X86/X86FrameLowering.cpp index 942df6c4a45..88359da0365 100644 --- a/lib/Target/X86/X86FrameLowering.cpp +++ b/lib/Target/X86/X86FrameLowering.cpp @@ -817,7 +817,8 @@ void X86FrameLowering::emitPrologue(MachineFunction &MF) const { BuildMI(MBB, MBBI, DL, TII.get(X86::PROLOG_LABEL)).addSym(Label); // Define the current CFA rule to use the provided offset. - unsigned Ptr = StackSize ? MachineLocation::VirtualFP : StackPtr; + assert(StackSize); + unsigned Ptr = MachineLocation::VirtualFP; MachineLocation SPDst(Ptr); MachineLocation SPSrc(Ptr, StackOffset); MMI.addFrameMove(Label, SPDst, SPSrc);