aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaTemplateInstantiate.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-09-11 07:25:08 +0000
committerJohn McCall <rjmccall@apple.com>2009-09-11 07:25:08 +0000
commit9cc7807e1622c2f945b607bdd39dd283df5e7bb5 (patch)
tree6f0f78fbe2e91afc5c80350049553e2b4f17b2e0 /lib/Sema/SemaTemplateInstantiate.cpp
parent136a6988960ac3aeb96f298da7a1a182db7217cd (diff)
Track a class template specialization's point of instantiation separately
from its location. Initialize appropriately. When implicitly creating a declaration of a class template specialization after encountering the first reference to it, use the pattern class's location instead of the location of the first reference. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81515 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiate.cpp')
-rw-r--r--lib/Sema/SemaTemplateInstantiate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaTemplateInstantiate.cpp b/lib/Sema/SemaTemplateInstantiate.cpp
index e719bbde92..6a5235229a 100644
--- a/lib/Sema/SemaTemplateInstantiate.cpp
+++ b/lib/Sema/SemaTemplateInstantiate.cpp
@@ -895,7 +895,7 @@ Sema::InstantiateClassTemplateSpecialization(
// Note that this is an instantiation.
ClassTemplateSpec->setSpecializationKind(TSK);
- bool Result = InstantiateClass(ClassTemplateSpec->getLocation(),
+ bool Result = InstantiateClass(ClassTemplateSpec->getPointOfInstantiation(),
ClassTemplateSpec, Pattern,
getTemplateInstantiationArgs(ClassTemplateSpec),
TSK,