From: Steve Naroff Date: Thu, 23 Apr 2009 17:46:47 +0000 (+0000) Subject: Remove @compatibility_alias regression. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04c5f4f3c0e6e751d34351d1b517fb589232878c;p=clang Remove @compatibility_alias regression. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69899 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index 446b125866..3c544ed377 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -206,7 +206,8 @@ Sema::DeclPtrTy Sema::ActOnCompatiblityAlias(SourceLocation AtLoc, ObjCAliasDecls[AliasName] = AliasDecl; - PushOnScopeChains(AliasDecl, TUScope); + // FIXME: PushOnScopeChains? + CurContext->addDecl(Context, AliasDecl); if (!CheckObjCDeclScope(AliasDecl)) TUScope->AddDecl(DeclPtrTy::make(AliasDecl));