diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-09-06 18:38:58 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-09-06 18:38:58 +0000 |
commit | 3359fa306836ffb64401aad4b561e7647b20d6ef (patch) | |
tree | 57f1c93df8b0e692703def082e4ed06abfed2fbd /lib/Sema/SemaDecl.cpp | |
parent | cddbc1d5872c96cd8c3ad3ddededa304757270d7 (diff) |
refactoring + objective-C specific test for my last patch.
// rdar://12233989
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163338 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 711ea4c729..b3db840397 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -11101,10 +11101,6 @@ Decl *Sema::getObjCDeclContext() const { } AvailabilityResult Sema::getCurContextAvailability() const { - const Decl *D = cast<Decl>(getCurLexicalContext()); - // A category implicitly has the availability of the interface. - if (const ObjCCategoryDecl *CatD = dyn_cast<ObjCCategoryDecl>(D)) - D = CatD->getClassInterface(); - + const Decl *D = cast<Decl>(getCurObjCLexicalContext()); return D->getAvailability(); } |