[cfe-commits] r142929 - /cfe/trunk/lib/Parse/ParseDeclCXX.cpp
David Blaikie
dblaikie at gmail.com
Tue Oct 25 10:14:10 PDT 2011
Author: dblaikie
Date: Tue Oct 25 12:14:10 2011
New Revision: 142929
URL: http://llvm.org/viewvc/llvm-project?rev=142929&view=rev
Log:
Initialize the BaseLoc for decltype base type specifications.
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=142929&r1=142928&r2=142929&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseDeclCXX.cpp (original)
+++ cfe/trunk/lib/Parse/ParseDeclCXX.cpp Tue Oct 25 12:14:10 2011
@@ -718,6 +718,8 @@
// Fake up a Declarator to use with ActOnTypeName.
DeclSpec DS(AttrFactory);
+ BaseLoc = Tok.getLocation();
+
ParseDecltypeSpecifier(DS);
EndLocation = DS.getSourceRange().getEnd();
More information about the cfe-commits
mailing list