]> granicus.if.org Git - clang/commitdiff
Use the real end of the decltype expression.
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 8 Dec 2011 04:53:15 +0000 (04:53 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 8 Dec 2011 04:53:15 +0000 (04:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146138 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseDeclCXX.cpp

index f2bdb9f7bd55fb5785872a6e30242a682b6f9995..58e16bfff48a4c7f59d8c403f730a9fd80f8c8e8 100644 (file)
@@ -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);