]> granicus.if.org Git - clang/commitdiff
Remove @compatibility_alias regression.
authorSteve Naroff <snaroff@apple.com>
Thu, 23 Apr 2009 17:46:47 +0000 (17:46 +0000)
committerSteve Naroff <snaroff@apple.com>
Thu, 23 Apr 2009 17:46:47 +0000 (17:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69899 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclObjC.cpp

index 446b1258666e7c5bb1bfba63f1730021376ef303..3c544ed377c9cda65ed9db29823b15e6bbfe4911 100644 (file)
@@ -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));