diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-02-14 13:49:48 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-02-14 13:49:48 +0000 |
commit | 60e92e55ccf62ba4cd40fa69845215c6ab067250 (patch) | |
tree | 0b22afb07164b786f20225566c54d579a09032a6 /clang/lib/Edit/RewriteObjCFoundationAPI.cpp | |
parent | 81f257569223578b5406a2a7d3e2f7dc92d0bfb1 (diff) | |
download | bcm5719-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.cpp | 5 |
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(); |