diff options
author | Cameron Zwarich <zwarich@apple.com> | 2011-06-10 20:30:08 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2011-06-10 20:30:08 +0000 |
commit | 86ceec1b422e69caae1b01efa480670f3ef68e8a (patch) | |
tree | 342929df1dd799830f9ac204c8fab8ffaef49e49 /llvm/lib/CodeGen/CallingConvLower.cpp | |
parent | 1ffadd7809939cb729ef29dcb6be5e6fb9324b83 (diff) | |
download | bcm5719-llvm-86ceec1b422e69caae1b01efa480670f3ef68e8a.tar.gz bcm5719-llvm-86ceec1b422e69caae1b01efa480670f3ef68e8a.zip |
Remove a pointless const_cast.
llvm-svn: 132852
Diffstat (limited to 'llvm/lib/CodeGen/CallingConvLower.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CallingConvLower.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CallingConvLower.cpp b/llvm/lib/CodeGen/CallingConvLower.cpp index bc61ec8ed0a..9bd244c80f3 100644 --- a/llvm/lib/CodeGen/CallingConvLower.cpp +++ b/llvm/lib/CodeGen/CallingConvLower.cpp @@ -51,7 +51,7 @@ void CCState::HandleByVal(unsigned ValNo, MVT ValVT, 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)); } |