aboutsummaryrefslogtreecommitdiff
path: root/lib/Edit
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
commit65303900ea1c0d44a0673f02f92faf8d73cc1b18 (patch)
tree4f38a5f180d8f183ca6fc28d8781a15173df691b /lib/Edit
parente252a89fc1560ca4cda9a95e4ae05e2dc03ee78c (diff)
Remove an unneeded const_cast
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175160 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Edit')
-rw-r--r--lib/Edit/RewriteObjCFoundationAPI.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Edit/RewriteObjCFoundationAPI.cpp b/lib/Edit/RewriteObjCFoundationAPI.cpp
index 215aacdad1..e04168fc40 100644
--- a/lib/Edit/RewriteObjCFoundationAPI.cpp
+++ b/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();