From: David Blaikie Date: Thu, 8 Dec 2011 04:53:15 +0000 (+0000) Subject: Use the real end of the decltype expression. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b57775709666e50cd925f9fc589d0fd895fc79a6;p=clang Use the real end of the decltype expression. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146138 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/ParseDeclCXX.cpp b/lib/Parse/ParseDeclCXX.cpp index f2bdb9f7bd..58e16bfff4 100644 --- a/lib/Parse/ParseDeclCXX.cpp +++ b/lib/Parse/ParseDeclCXX.cpp @@ -782,8 +782,7 @@ Parser::TypeResult Parser::ParseBaseTypeSpecifier(SourceLocation &BaseLoc, // Fake up a Declarator to use with ActOnTypeName. DeclSpec DS(AttrFactory); - ParseDecltypeSpecifier(DS); - EndLocation = DS.getSourceRange().getEnd(); + EndLocation = ParseDecltypeSpecifier(DS); Declarator DeclaratorInfo(DS, Declarator::TypeNameContext); return Actions.ActOnTypeName(getCurScope(), DeclaratorInfo);