Improve point-of-instantiation location information for members of class templates

llvm-svn: 84217
This commit is contained in:
Douglas Gregor 2009-10-15 23:05:15 +00:00
parent 12e49d3250
commit 78236a0788
1 changed files with 2 additions and 2 deletions

View File

@ -1014,7 +1014,7 @@ Sema::InstantiateClassMembers(SourceLocation PointOfInstantiation,
TSK_ExplicitSpecialization)
continue;
Function->setTemplateSpecializationKind(TSK);
Function->setTemplateSpecializationKind(TSK, PointOfInstantiation);
}
if (!Function->getBody() && TSK == TSK_ExplicitInstantiationDefinition)
@ -1025,7 +1025,7 @@ Sema::InstantiateClassMembers(SourceLocation PointOfInstantiation,
if (Var->getTemplateSpecializationKind() == TSK_ExplicitSpecialization)
continue;
Var->setTemplateSpecializationKind(TSK);
Var->setTemplateSpecializationKind(TSK, PointOfInstantiation);
if (TSK == TSK_ExplicitInstantiationDefinition)
InstantiateStaticDataMemberDefinition(PointOfInstantiation, Var);