MetaTypeType doesn't refer to a oneof anymore, it refers to any named type,

which means it wraps a TypeAliasDecl.


Swift SVN r1001
This commit is contained in:
Chris Lattner
2012-01-11 06:50:24 +00:00
parent 7249239ccd
commit 627b055989
3 changed files with 6 additions and 8 deletions

View File

@@ -72,9 +72,8 @@ TypeAliasDecl *ScopeInfo::lookupTypeNameInternal(Identifier Name, SourceLoc Loc,
while (S->getParentScope())
S = S->getParentScope();
if (AsType) {
if (AsType)
UnresolvedTypeList.push_back(TAD);
}
TypeScopeHT.insertIntoScope(S, Name, TypeScopeEntry(TAD, 0, AsType));
return TAD;