[llvm-commits] [llvm] r132852 - /llvm/trunk/lib/CodeGen/CallingConvLower.cpp
Cameron Zwarich
zwarich at apple.com
Fri Jun 10 13:30:08 PDT 2011
Author: zwarich
Date: Fri Jun 10 15:30:08 2011
New Revision: 132852
URL: http://llvm.org/viewvc/llvm-project?rev=132852&view=rev
Log:
Remove a pointless const_cast.
Modified:
llvm/trunk/lib/CodeGen/CallingConvLower.cpp
Modified: llvm/trunk/lib/CodeGen/CallingConvLower.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/CallingConvLower.cpp?rev=132852&r1=132851&r2=132852&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/CallingConvLower.cpp (original)
+++ llvm/trunk/lib/CodeGen/CallingConvLower.cpp Fri Jun 10 15:30:08 2011
@@ -51,7 +51,7 @@
Align = MinAlign;
if (MF.getFrameInfo()->getMaxAlignment() < Align)
MF.getFrameInfo()->setMaxAlignment(Align);
- TM.getTargetLowering()->HandleByVal(const_cast<CCState*>(this), Size);
+ TM.getTargetLowering()->HandleByVal(this, Size);
unsigned Offset = AllocateStack(Size, Align);
addLoc(CCValAssign::getMem(ValNo, ValVT, Offset, LocVT, LocInfo));
}
More information about the llvm-commits
mailing list