forked from OSchip/llvm-project
Remove evil const_cast that's not needed anymore.
llvm-svn: 150210
This commit is contained in:
parent
6d1bebbad9
commit
e22bef7ff2
|
@ -4158,9 +4158,7 @@ llvm::Constant *CGObjCCommonMac::GetMethodVarType(const FieldDecl *Field) {
|
|||
llvm::Constant *CGObjCCommonMac::GetMethodVarType(const ObjCMethodDecl *D,
|
||||
bool Extended) {
|
||||
std::string TypeStr;
|
||||
if (CGM.getContext().getObjCEncodingForMethodDecl(
|
||||
const_cast<ObjCMethodDecl*>(D),
|
||||
TypeStr, Extended))
|
||||
if (CGM.getContext().getObjCEncodingForMethodDecl(D, TypeStr, Extended))
|
||||
return 0;
|
||||
|
||||
llvm::GlobalVariable *&Entry = MethodVarTypes[TypeStr];
|
||||
|
|
Loading…
Reference in New Issue