projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a9a3a5
)
Remove a pointless const_cast.
author
Cameron Zwarich
<zwarich@apple.com>
Fri, 10 Jun 2011 20:30:08 +0000
(20:30 +0000)
committer
Cameron Zwarich
<zwarich@apple.com>
Fri, 10 Jun 2011 20:30:08 +0000
(20:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132852
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/CallingConvLower.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/CallingConvLower.cpp
b/lib/CodeGen/CallingConvLower.cpp
index bc61ec8ed0a49e4b1ca74bfb7abe2de10c04b592..9bd244c80f33a882418cb7123d67121c79ed9755 100644
(file)
--- 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));
}