Skip to content

Commit

Permalink
Initialize the BaseLoc for decltype base type specifications.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142929 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
dwblaikie committed Oct 25, 2011
1 parent 22216eb commit edae1a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Parse/ParseDeclCXX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,8 @@ Parser::TypeResult Parser::ParseBaseTypeSpecifier(SourceLocation &BaseLoc,
// Fake up a Declarator to use with ActOnTypeName.
DeclSpec DS(AttrFactory);

BaseLoc = Tok.getLocation();

ParseDecltypeSpecifier(DS);
EndLocation = DS.getSourceRange().getEnd();

Expand Down

0 comments on commit edae1a2

Please sign in to comment.