summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2010-07-20 02:53:15 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2010-07-20 02:53:15 +0000
commit70856f7986444a0eb4d4683eb0325612170eb0ab (patch)
tree16b363d720f6f5377cefcff9393d49f427909277 /clang/lib/Checker
parent9d8416b799e00cae6b798a8e96ef657edad76e10 (diff)
downloadbcm5719-llvm-70856f7986444a0eb4d4683eb0325612170eb0ab.tar.gz
bcm5719-llvm-70856f7986444a0eb4d4683eb0325612170eb0ab.zip
remove const_cast.
llvm-svn: 108803
Diffstat (limited to 'clang/lib/Checker')
-rw-r--r--clang/lib/Checker/CFRefCount.cpp3
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())
OpenPOWER on IntegriCloud