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 | cbd09bdf4b521350c9910dedae9b4e7c9b305c8d (patch) | |
tree | a5b42a87cdafef73afd7ef2680761353e0dd4f12 /lib/CodeGen/CallingConvLower.cpp | |
parent | 9a9a3a5c0fff9647a7a6454d974c058a4fb187d7 (diff) |
Remove a pointless const_cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132852 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CallingConvLower.cpp')
-rw-r--r-- | lib/CodeGen/CallingConvLower.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CallingConvLower.cpp b/lib/CodeGen/CallingConvLower.cpp index bc61ec8ed0..9bd244c80f 100644 --- a/lib/CodeGen/CallingConvLower.cpp +++ b/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)); } |