instantiation, since we're not using a Scope object for that anyway.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91770
91177308-0d34-0410-b5e6-
96231b3b80d8
if (DeclContext *DC = computeDeclContext(D.getCXXScopeSpec(), true)) {
// FIXME: Preserve type source info.
QualType T = GetTypeFromParser(DS.getTypeRep());
- EnterDeclaratorContext(S, DC);
+
+ DeclContext *SavedContext = CurContext;
+ CurContext = DC;
T = RebuildTypeInCurrentInstantiation(T, D.getIdentifierLoc(), Name);
- ExitDeclaratorContext(S);
+ CurContext = SavedContext;
+
if (T.isNull())
return DeclPtrTy();
DS.UpdateTypeRep(T.getAsOpaquePtr());