remove const_cast.

llvm-svn: 108803
This commit is contained in:
Zhongxing Xu 2010-07-20 02:53:15 +00:00
parent 9d8416b799
commit 70856f7986
1 changed files with 1 additions and 2 deletions

View File

@ -82,8 +82,7 @@ public:
static const ObjCMethodDecl*
ResolveToInterfaceMethodDecl(const ObjCMethodDecl *MD) {
ObjCInterfaceDecl *ID =
const_cast<ObjCInterfaceDecl*>(MD->getClassInterface());
const ObjCInterfaceDecl *ID = MD->getClassInterface();
return MD->isInstanceMethod()
? ID->lookupInstanceMethod(MD->getSelector())