diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-12-05 01:31:47 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-12-05 01:31:47 +0000 |
commit | 891fc7f37a0be80c59a791d283f5e568254c07fa (patch) | |
tree | 880831f30f7be7807a86934a43a5996f48133eac /clang/lib/Sema/SemaTemplateInstantiate.cpp | |
parent | 913b42b0e180044c343d666d29412b1b1ff59749 (diff) | |
download | bcm5719-llvm-891fc7f37a0be80c59a791d283f5e568254c07fa.tar.gz bcm5719-llvm-891fc7f37a0be80c59a791d283f5e568254c07fa.zip |
Generalize "static data member instantiated" notification to cover variable templates too.
While here, split the "point of instantiation changed" notification out from
it; these two really are orthogonal changes.
llvm-svn: 319727
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiate.cpp')
-rw-r--r-- | clang/lib/Sema/SemaTemplateInstantiate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiate.cpp b/clang/lib/Sema/SemaTemplateInstantiate.cpp index 03ad89100d0..a48e2466a84 100644 --- a/clang/lib/Sema/SemaTemplateInstantiate.cpp +++ b/clang/lib/Sema/SemaTemplateInstantiate.cpp @@ -2613,7 +2613,7 @@ Sema::InstantiateClassMembers(SourceLocation PointOfInstantiation, continue; Var->setTemplateSpecializationKind(TSK, PointOfInstantiation); - InstantiateStaticDataMemberDefinition(PointOfInstantiation, Var); + InstantiateVariableDefinition(PointOfInstantiation, Var); } else { Var->setTemplateSpecializationKind(TSK, PointOfInstantiation); } |