summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVassil Vassilev <v.g.vassilev@gmail.com>2017-01-10 09:09:09 +0000
committerVassil Vassilev <v.g.vassilev@gmail.com>2017-01-10 09:09:09 +0000
commit2999d0e8bb7f0d0bb03e1c61d6f62992d373a95c (patch)
tree428e59062f01a7ad1c1e44e4a156beed6375e227
parent9451c35982f3373729734d75ffe693b8af4a7ca0 (diff)
downloadbcm5719-llvm-2999d0e8bb7f0d0bb03e1c61d6f62992d373a95c.tar.gz
bcm5719-llvm-2999d0e8bb7f0d0bb03e1c61d6f62992d373a95c.zip
Remove fixme, use ASTContext::getCanonicalTemplateSpecializationType.
Reviewed by Richard Smith (D28306). llvm-svn: 291552
-rw-r--r--clang/lib/Sema/SemaTemplate.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp
index fd086a4f7f7..447ed890d60 100644
--- a/clang/lib/Sema/SemaTemplate.cpp
+++ b/clang/lib/Sema/SemaTemplate.cpp
@@ -2328,15 +2328,7 @@ QualType Sema::CheckTemplateIdType(TemplateName Name,
// A<T, T> have identical types when A is declared as:
//
// template<typename T, typename U = T> struct A;
- TemplateName CanonName = Context.getCanonicalTemplateName(Name);
- CanonType = Context.getTemplateSpecializationType(CanonName,
- Converted);
-
- // FIXME: CanonType is not actually the canonical type, and unfortunately
- // it is a TemplateSpecializationType that we will never use again.
- // In the future, we need to teach getTemplateSpecializationType to only
- // build the canonical type and return that to us.
- CanonType = Context.getCanonicalType(CanonType);
+ CanonType = Context.getCanonicalTemplateSpecializationType(Name, Converted);
// This might work out to be a current instantiation, in which
// case the canonical type needs to be the InjectedClassNameType.
@@ -3444,7 +3436,7 @@ SubstDefaultTemplateArgument(Sema &SemaRef,
SourceLocation TemplateLoc,
SourceLocation RAngleLoc,
TemplateTypeParmDecl *Param,
- SmallVectorImpl<TemplateArgument> &Converted) {
+ SmallVectorImpl<TemplateArgument> &Converted) {
TypeSourceInfo *ArgType = Param->getDefaultArgumentInfo();
// If the argument type is dependent, instantiate it now based
OpenPOWER on IntegriCloud