r257957 - OpaquePtr: Use nullptr construction for TemplateTy OpaquePtr typedef
David Blaikie via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 15 15:43:29 PST 2016
Author: dblaikie
Date: Fri Jan 15 17:43:28 2016
New Revision: 257957
URL: http://llvm.org/viewvc/llvm-project?rev=257957&view=rev
Log:
OpaquePtr: Use nullptr construction for TemplateTy OpaquePtr typedef
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=257957&r1=257956&r2=257957&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseDeclCXX.cpp (original)
+++ cfe/trunk/lib/Parse/ParseDeclCXX.cpp Fri Jan 15 17:43:28 2016
@@ -1006,8 +1006,8 @@ TypeResult Parser::ParseBaseTypeSpecifie
if (!Template) {
TemplateArgList TemplateArgs;
SourceLocation LAngleLoc, RAngleLoc;
- ParseTemplateIdAfterTemplateName(TemplateTy(), IdLoc, SS,
- true, LAngleLoc, TemplateArgs, RAngleLoc);
+ ParseTemplateIdAfterTemplateName(nullptr, IdLoc, SS, true, LAngleLoc,
+ TemplateArgs, RAngleLoc);
return true;
}
@@ -1381,9 +1381,8 @@ void Parser::ParseClassSpecifier(tok::To
// a class (or template thereof).
TemplateArgList TemplateArgs;
SourceLocation LAngleLoc, RAngleLoc;
- if (ParseTemplateIdAfterTemplateName(TemplateTy(), NameLoc, SS,
- true, LAngleLoc,
- TemplateArgs, RAngleLoc)) {
+ if (ParseTemplateIdAfterTemplateName(
+ nullptr, NameLoc, SS, true, LAngleLoc, TemplateArgs, RAngleLoc)) {
// We couldn't parse the template argument list at all, so don't
// try to give any location information for the list.
LAngleLoc = RAngleLoc = SourceLocation();
More information about the cfe-commits
mailing list