Start propgating TypeLocs from the parser into the AST.

Swift SVN r2372
This commit is contained in:
Eli Friedman
2012-07-19 02:54:28 +00:00
parent 3b16fe7d44
commit 361f931a16
13 changed files with 103 additions and 65 deletions

View File

@@ -62,8 +62,8 @@ void BuiltinModuleCache::lookupValue(Identifier Name, NLKind LookupKind,
if (Entry == 0)
if (Type Ty = getBuiltinType(M.Ctx, Name.str()))
Entry = new (M.Ctx) TypeAliasDecl(SourceLoc(), Name, SourceLoc(), Ty,
M.Ctx.TheBuiltinModule,
Entry = new (M.Ctx) TypeAliasDecl(SourceLoc(), Name, SourceLoc(),
Ty, nullptr, M.Ctx.TheBuiltinModule,
MutableArrayRef<Type>());
if (Entry == 0)