summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclObjC.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-04-22 04:34:53 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-04-22 04:34:53 +0000
commitaefc2b9be3abddea247db68ae525baebf91e721d (patch)
tree4e3f9d37d23927d65e8861c115579f7bb0855556 /clang/lib/AST/DeclObjC.cpp
parent25b81ef84775e5ea9cfd1ad81145203d125940f2 (diff)
downloadbcm5719-llvm-aefc2b9be3abddea247db68ae525baebf91e721d.tar.gz
bcm5719-llvm-aefc2b9be3abddea247db68ae525baebf91e721d.zip
Mark another TypeForDecl const and make getObjCInterfaceType's argument const.
llvm-svn: 69772
Diffstat (limited to 'clang/lib/AST/DeclObjC.cpp')
-rw-r--r--clang/lib/AST/DeclObjC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp
index be23e3039d7..de10230991a 100644
--- a/clang/lib/AST/DeclObjC.cpp
+++ b/clang/lib/AST/DeclObjC.cpp
@@ -277,7 +277,7 @@ void ObjCMethodDecl::createImplicitParams(ASTContext &Context,
// There may be no interface context due to error in declaration
// of the interface (which has been reported). Recover gracefully.
if (OID) {
- selfTy =Context.getObjCInterfaceType(const_cast<ObjCInterfaceDecl*>(OID));
+ selfTy = Context.getObjCInterfaceType(OID);
selfTy = Context.getPointerType(selfTy);
} else {
selfTy = Context.getObjCIdType();
OpenPOWER on IntegriCloud