From 60e92e55ccf62ba4cd40fa69845215c6ab067250 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Thu, 14 Feb 2013 13:49:48 +0000 Subject: Remove an unneeded const_cast llvm-svn: 175160 --- clang/lib/Edit/RewriteObjCFoundationAPI.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'clang') 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(Method)); + const ObjCInterfaceDecl *IFace = + NS.getASTContext().getObjContainingInterface(Method); if (!IFace) return false; Selector Sel = Msg->getSelector(); -- cgit v1.2.3