[cfe-commits] r146138 - /cfe/trunk/lib/Parse/ParseDeclCXX.cpp

David Blaikie dblaikie at gmail.com
Wed Dec 7 20:53:15 PST 2011


Author: dblaikie
Date: Wed Dec  7 22:53:15 2011
New Revision: 146138

URL: http://llvm.org/viewvc/llvm-project?rev=146138&view=rev
Log:
Use the real end of the decltype expression.

Modified:
    cfe/trunk/lib/Parse/ParseDeclCXX.cpp

Modified: cfe/trunk/lib/Parse/ParseDeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseDeclCXX.cpp?rev=146138&r1=146137&r2=146138&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseDeclCXX.cpp (original)
+++ cfe/trunk/lib/Parse/ParseDeclCXX.cpp Wed Dec  7 22:53:15 2011
@@ -782,8 +782,7 @@
     // 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);





More information about the cfe-commits mailing list