More PushOnScopeChain() FIXME's.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69894 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp
index 7b23b04..446b125 100644
--- a/lib/Sema/SemaDeclObjC.cpp
+++ b/lib/Sema/SemaDeclObjC.cpp
@@ -206,8 +206,7 @@
ObjCAliasDecls[AliasName] = AliasDecl;
- // FIXME: PushOnScopeChains?
- CurContext->addDecl(Context, AliasDecl);
+ PushOnScopeChains(AliasDecl, TUScope);
if (!CheckObjCDeclScope(AliasDecl))
TUScope->AddDecl(DeclPtrTy::make(AliasDecl));
@@ -1048,8 +1047,7 @@
IdentList[i], SourceLocation(), true);
ObjCInterfaceDecls[IdentList[i]] = IDecl;
- // FIXME: PushOnScopeChains?
- CurContext->addDecl(Context, IDecl);
+ PushOnScopeChains(IDecl, TUScope);
// Remember that this needs to be removed when the scope is popped.
TUScope->AddDecl(DeclPtrTy::make(IDecl));
}