Remove a pointless const_cast.

llvm-svn: 132852
This commit is contained in:
Cameron Zwarich 2011-06-10 20:30:08 +00:00
parent d6a9a045e0
commit 0019f5de6c

View File

@ -51,7 +51,7 @@ void CCState::HandleByVal(unsigned ValNo, MVT ValVT,
Align = MinAlign; Align = MinAlign;
if (MF.getFrameInfo()->getMaxAlignment() < Align) if (MF.getFrameInfo()->getMaxAlignment() < Align)
MF.getFrameInfo()->setMaxAlignment(Align); MF.getFrameInfo()->setMaxAlignment(Align);
TM.getTargetLowering()->HandleByVal(const_cast<CCState*>(this), Size); TM.getTargetLowering()->HandleByVal(this, Size);
unsigned Offset = AllocateStack(Size, Align); unsigned Offset = AllocateStack(Size, Align);
addLoc(CCValAssign::getMem(ValNo, ValVT, Offset, LocVT, LocInfo)); addLoc(CCValAssign::getMem(ValNo, ValVT, Offset, LocVT, LocInfo));
} }