summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclObjC.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2011-08-29 22:59:14 +0000
committerNico Weber <nicolasweber@gmx.de>2011-08-29 22:59:14 +0000
commitf926a45df5f129e3119da5a4959a5a40ef551efe (patch)
treed9ceeebcc667dcffbfaae36d3909c8fc24ce0d33 /clang/lib/Sema/SemaDeclObjC.cpp
parent69a990badbe5c14189f6a7c140eb8083ec6e82d6 (diff)
downloadbcm5719-llvm-f926a45df5f129e3119da5a4959a5a40ef551efe.tar.gz
bcm5719-llvm-f926a45df5f129e3119da5a4959a5a40ef551efe.zip
Do not warn about [super finalize] in arc mode.
llvm-svn: 138776
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclObjC.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp
index 11bcb4f0830..ef978f0730a 100644
--- a/clang/lib/Sema/SemaDeclObjC.cpp
+++ b/clang/lib/Sema/SemaDeclObjC.cpp
@@ -297,7 +297,9 @@ void Sema::ActOnStartOfObjCMethodDef(Scope *FnBodyScope, Decl *D) {
ObjCShouldCallSuperDealloc =
!Context.getLangOptions().ObjCAutoRefCount &&
MDecl->getMethodFamily() == OMF_dealloc;
- ObjCShouldCallSuperFinalize = MDecl->getMethodFamily() == OMF_finalize;
+ ObjCShouldCallSuperFinalize =
+ !Context.getLangOptions().ObjCAutoRefCount &&
+ MDecl->getMethodFamily() == OMF_finalize;
}
}
}
OpenPOWER on IntegriCloud