diff options
author | Nico Weber <nicolasweber@gmx.de> | 2011-08-29 22:59:14 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2011-08-29 22:59:14 +0000 |
commit | f926a45df5f129e3119da5a4959a5a40ef551efe (patch) | |
tree | d9ceeebcc667dcffbfaae36d3909c8fc24ce0d33 /clang/lib/Sema/SemaDeclObjC.cpp | |
parent | 69a990badbe5c14189f6a7c140eb8083ec6e82d6 (diff) | |
download | bcm5719-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.cpp | 4 |
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; } } } |