summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseTemplate.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-08-23 07:28:44 +0000
committerJohn McCall <rjmccall@apple.com>2010-08-23 07:28:44 +0000
commit3e56fd4d221d9f282c5ed2df0081257034a8dc65 (patch)
tree34cfdb17438c9ac26dec5acae407b4b8908f8213 /clang/lib/Parse/ParseTemplate.cpp
parent421ad5e1e67bbc1ea57a2aae93ed3205d3e96617 (diff)
downloadbcm5719-llvm-3e56fd4d221d9f282c5ed2df0081257034a8dc65.tar.gz
bcm5719-llvm-3e56fd4d221d9f282c5ed2df0081257034a8dc65.zip
Push DeclGroupRefs and TemplateNames in an opaque but type-safe way
through the parser. llvm-svn: 111800
Diffstat (limited to 'clang/lib/Parse/ParseTemplate.cpp')
-rw-r--r--clang/lib/Parse/ParseTemplate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseTemplate.cpp b/clang/lib/Parse/ParseTemplate.cpp
index 5d5fc9ce3bd..795fea789cc 100644
--- a/clang/lib/Parse/ParseTemplate.cpp
+++ b/clang/lib/Parse/ParseTemplate.cpp
@@ -806,7 +806,7 @@ bool Parser::AnnotateTemplateIdToken(TemplateTy Template, TemplateNameKind TNK,
TemplateId->Name = 0;
TemplateId->Operator = TemplateName.OperatorFunctionId.Operator;
}
- TemplateId->Template = Template.getAs<void*>();
+ TemplateId->Template = Template;
TemplateId->Kind = TNK;
TemplateId->LAngleLoc = LAngleLoc;
TemplateId->RAngleLoc = RAngleLoc;
@@ -851,7 +851,7 @@ void Parser::AnnotateTemplateIdTokenAsType(const CXXScopeSpec *SS) {
TemplateId->NumArgs);
Action::TypeResult Type
- = Actions.ActOnTemplateIdType(TemplateTy::make(TemplateId->Template),
+ = Actions.ActOnTemplateIdType(TemplateId->Template,
TemplateId->TemplateNameLoc,
TemplateId->LAngleLoc,
TemplateArgsPtr,
OpenPOWER on IntegriCloud