Delete dead code.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 16 May 2013 04:59:17 +0000 (04:59 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 16 May 2013 04:59:17 +0000 (04:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181982 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86FrameLowering.cpp

index 942df6c4a456fec41921f1a100b61d74afc956e6..88359da0365fd748158239d8eb6c9e427541a78c 100644 (file)
@@ -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);