summaryrefslogtreecommitdiffstats
path: root/clang/lib/Edit/RewriteObjCFoundationAPI.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-02-14 13:49:48 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-02-14 13:49:48 +0000
commit60e92e55ccf62ba4cd40fa69845215c6ab067250 (patch)
tree0b22afb07164b786f20225566c54d579a09032a6 /clang/lib/Edit/RewriteObjCFoundationAPI.cpp
parent81f257569223578b5406a2a7d3e2f7dc92d0bfb1 (diff)
downloadbcm5719-llvm-60e92e55ccf62ba4cd40fa69845215c6ab067250.tar.gz
bcm5719-llvm-60e92e55ccf62ba4cd40fa69845215c6ab067250.zip
Remove an unneeded const_cast
llvm-svn: 175160
Diffstat (limited to 'clang/lib/Edit/RewriteObjCFoundationAPI.cpp')
-rw-r--r--clang/lib/Edit/RewriteObjCFoundationAPI.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Edit/RewriteObjCFoundationAPI.cpp b/clang/lib/Edit/RewriteObjCFoundationAPI.cpp
index 215aacdad10..e04168fc40e 100644
--- a/clang/lib/Edit/RewriteObjCFoundationAPI.cpp
+++ b/clang/lib/Edit/RewriteObjCFoundationAPI.cpp
@@ -296,9 +296,8 @@ bool edit::rewriteToObjCSubscriptSyntax(const ObjCMessageExpr *Msg,
if (!Method)
return false;
- const ObjCInterfaceDecl *
- IFace = NS.getASTContext().getObjContainingInterface(
- const_cast<ObjCMethodDecl *>(Method));
+ const ObjCInterfaceDecl *IFace =
+ NS.getASTContext().getObjContainingInterface(Method);
if (!IFace)
return false;
Selector Sel = Msg->getSelector();
OpenPOWER on IntegriCloud