forked from OSchip/llvm-project
Try to get the bots green after r119966.
llvm-svn: 119968
This commit is contained in:
parent
556f203d64
commit
7f8bb368ea
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue