aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-05-16 04:59:17 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-05-16 04:59:17 +0000
commit0ed9f1fd8687ad32364b56898e6ebe1515e0e41c (patch)
tree802efb1c3a8647622e012fb0f3ce947a3c5e11ef /lib/Target
parentce9bd66d016b839b795327891a54356c4a8a25ab (diff)
downloadexternal_llvm-0ed9f1fd8687ad32364b56898e6ebe1515e0e41c.zip
external_llvm-0ed9f1fd8687ad32364b56898e6ebe1515e0e41c.tar.gz
external_llvm-0ed9f1fd8687ad32364b56898e6ebe1515e0e41c.tar.bz2
Delete dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181982 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/X86/X86FrameLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/X86/X86FrameLowering.cpp b/lib/Target/X86/X86FrameLowering.cpp
index 942df6c..88359da 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);