aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDeclObjC.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-04-23 17:46:47 +0000
committerSteve Naroff <snaroff@apple.com>2009-04-23 17:46:47 +0000
commit04c5f4f3c0e6e751d34351d1b517fb589232878c (patch)
treeb851e0cb570428721c0682a95998cb7af113ab78 /lib/Sema/SemaDeclObjC.cpp
parent6f132351abfec8ac0ed88b39f2fb347ee266ff43 (diff)
Remove @compatibility_alias regression.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69899 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r--lib/Sema/SemaDeclObjC.cpp3
1 files changed, 2 insertions, 1 deletions
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));