convert parseType to take a DiagID.

Swift SVN r762
This commit is contained in:
Chris Lattner
2011-10-20 19:53:00 +00:00
parent f149ab5527
commit 96f732b6a2
5 changed files with 22 additions and 10 deletions

View File

@@ -133,7 +133,7 @@ bool Parser::parseValueSpecifier(Type &Ty, NullablePtr<Expr> &Init,
// Parse the type if present.
if (consumeIf(tok::colon) &&
parseType(Ty, "expected type in var declaration"))
parseType(Ty, diags::expected_type))
return true;
// Parse the initializer, if present.