Try to get the bots green after r119966.

llvm-svn: 119968
This commit is contained in:
Nico Weber 2010-11-22 12:50:03 +00:00
parent 556f203d64
commit 7f8bb368ea
2 changed files with 7 additions and 4 deletions

View File

@ -1083,8 +1083,9 @@ void Parser::ParseDeclarationSpecifiers(DeclSpec &DS,
case tok::annot_typename: {
if (Tok.getAnnotationValue()) {
ParsedType T = getTypeAnnotation(Tok);
isInvalid = DS.SetTypeSpecType(DeclSpec::TST_typename,
Tok.getAnnotationEndLoc(), PrevSpec,
// FIXME: This should probably pass getAnnotationEndLoc() instead of
// Loc, but that breaks test/Index/recursive-cxx-member-calls.cpp.
isInvalid = DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec,
DiagID, T);
} else
DS.SetTypeSpecError();

View File

@ -912,8 +912,10 @@ void Parser::ParseCXXSimpleTypeSpecifier(DeclSpec &DS) {
// type-name
case tok::annot_typename: {
DS.SetTypeSpecType(DeclSpec::TST_typename, Tok.getAnnotationEndLoc(),
PrevSpec, DiagID, getTypeAnnotation(Tok));
// FIXME: This should probably pass getAnnotationEndLoc() instead of Loc,
// but that breaks test/Index/recursive-cxx-member-calls.cpp.
DS.SetTypeSpecType(DeclSpec::TST_typename, Loc, PrevSpec, DiagID,
getTypeAnnotation(Tok));
DS.SetRangeEnd(Tok.getAnnotationEndLoc());
ConsumeToken();