Remove evil const_cast that's not needed anymore.

llvm-svn: 150210
This commit is contained in:
Bill Wendling 2012-02-09 22:45:21 +00:00
parent 6d1bebbad9
commit e22bef7ff2
1 changed files with 1 additions and 3 deletions

View File

@ -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];