mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert r2372, which is breaking some tests.
Swift SVN r2375
This commit is contained in:
@@ -60,15 +60,11 @@ void BuiltinModuleCache::lookupValue(Identifier Name, NLKind LookupKind,
|
||||
|
||||
ValueDecl *&Entry = Cache[Name];
|
||||
|
||||
if (Entry == 0) {
|
||||
if (Type Ty = getBuiltinType(M.Ctx, Name.str())) {
|
||||
auto TAD = new (M.Ctx) TypeAliasDecl(SourceLoc(), Name, SourceLoc(),
|
||||
if (Entry == 0)
|
||||
if (Type Ty = getBuiltinType(M.Ctx, Name.str()))
|
||||
Entry = new (M.Ctx) TypeAliasDecl(SourceLoc(), Name, SourceLoc(),
|
||||
Ty, nullptr, M.Ctx.TheBuiltinModule,
|
||||
MutableArrayRef<Type>());
|
||||
TAD->setType(MetaTypeType::get(TAD->getAliasType(), M.Ctx));
|
||||
Entry = TAD;
|
||||
}
|
||||
}
|
||||
|
||||
if (Entry == 0)
|
||||
Entry = getBuiltinValue(M.Ctx, Name);
|
||||
|
||||
Reference in New Issue
Block a user