Revert r109652, and remove the offending assert in loadRegFromStackSlot instead.
[oota-llvm.git] / lib / Target / X86 / X86InstrInfo.cpp
index c4613a28ef4f69b356c56e5138197422a8302064..98323fa7b07f11514aadaa1e13df6d536055d8a0 100644 (file)
@@ -2033,8 +2033,6 @@ void X86InstrInfo::loadRegFromStackSlot(MachineBasicBlock &MBB,
                                         const TargetRegisterClass *RC,
                                         const TargetRegisterInfo *TRI) const {
   const MachineFunction &MF = *MBB.getParent();
-  assert(MF.getFrameInfo()->getObjectSize(FrameIdx) >= RC->getSize() &&
-         "Stack slot too small for load");
   bool isAligned = (RI.getStackAlignment() >= 16) || RI.canRealignStack(MF);
   unsigned Opc = getLoadRegOpcode(DestReg, RC, isAligned, TM);
   DebugLoc DL = MBB.findDebugLoc(MI);