diff options
| author | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-07-20 02:53:15 +0000 |
|---|---|---|
| committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2010-07-20 02:53:15 +0000 |
| commit | 70856f7986444a0eb4d4683eb0325612170eb0ab (patch) | |
| tree | 16b363d720f6f5377cefcff9393d49f427909277 | |
| parent | 9d8416b799e00cae6b798a8e96ef657edad76e10 (diff) | |
| download | bcm5719-llvm-70856f7986444a0eb4d4683eb0325612170eb0ab.tar.gz bcm5719-llvm-70856f7986444a0eb4d4683eb0325612170eb0ab.zip | |
remove const_cast.
llvm-svn: 108803
| -rw-r--r-- | clang/lib/Checker/CFRefCount.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Checker/CFRefCount.cpp b/clang/lib/Checker/CFRefCount.cpp index 3c74cd8f9b2..d35f247f75f 100644 --- a/clang/lib/Checker/CFRefCount.cpp +++ b/clang/lib/Checker/CFRefCount.cpp @@ -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()) |

