diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2010-11-22 12:50:03 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2010-11-22 12:50:03 +0000 |
| commit | 7f8bb368ea78481d3cfd7126912a34f4d86fe826 (patch) | |
| tree | 3ea9d44566a953102f508ddcdd453778e011623c /clang/lib | |
| parent | 556f203d646cbc63c1d9079f81f4ebbe3f93eea8 (diff) | |
| download | bcm5719-llvm-7f8bb368ea78481d3cfd7126912a34f4d86fe826.tar.gz bcm5719-llvm-7f8bb368ea78481d3cfd7126912a34f4d86fe826.zip | |
Try to get the bots green after r119966.
llvm-svn: 119968
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Parse/ParseDecl.cpp | 5 | ||||
| -rw-r--r-- | clang/lib/Parse/ParseExprCXX.cpp | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp index 36054a9958a..79fc198ab49 100644 --- a/clang/lib/Parse/ParseDecl.cpp +++ b/clang/lib/Parse/ParseDecl.cpp @@ -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(); diff --git a/clang/lib/Parse/ParseExprCXX.cpp b/clang/lib/Parse/ParseExprCXX.cpp index 24a1274b01a..e027e28e9ad 100644 --- a/clang/lib/Parse/ParseExprCXX.cpp +++ b/clang/lib/Parse/ParseExprCXX.cpp @@ -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(); |

