diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-01-14 21:20:45 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-01-14 21:20:45 +0000 |
commit | 67fd1251aad51bb80d050b7fa5e506fef0ec8e02 (patch) | |
tree | 81040f6a18824db5f621b6488343e4216e7c2d16 /lib/AST/DeclTemplate.cpp | |
parent | 3efd52cf8f4e57c5571bd8cc3168264c3bc46a1e (diff) |
Teach PackExpansionExpr to keep track of the number of pack expansions
it will expand to, if known. Propagate this information throughout Sema.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123470 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclTemplate.cpp')
-rw-r--r-- | lib/AST/DeclTemplate.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/AST/DeclTemplate.cpp b/lib/AST/DeclTemplate.cpp index bd91facd08..e7902e996a 100644 --- a/lib/AST/DeclTemplate.cpp +++ b/lib/AST/DeclTemplate.cpp @@ -332,7 +332,8 @@ ClassTemplateDecl::getInjectedClassNameSpecialization() { if (NTTP->isParameterPack()) E = new (Context) PackExpansionExpr(Context.DependentTy, E, - NTTP->getLocation()); + NTTP->getLocation(), + llvm::Optional<unsigned>()); Arg = TemplateArgument(E); } else { TemplateTemplateParmDecl *TTP = cast<TemplateTemplateParmDecl>(*Param); |