From: Rafael Espindola Date: Thu, 16 May 2013 04:59:17 +0000 (+0000) Subject: Delete dead code. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0ed9f1fd8687ad32364b56898e6ebe1515e0e41c;p=oota-llvm.git Delete dead code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181982 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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);