summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplateVariadic.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-12-24 00:15:10 +0000
committerDouglas Gregor <dgregor@apple.com>2010-12-24 00:15:10 +0000
commiteb5a39deb2f4fe7091c6a716a4ce3a88b9898ec4 (patch)
tree54324d0e14236ce2d935e18c0a8a55afe0303980 /clang/lib/Sema/SemaTemplateVariadic.cpp
parentfa3c6f148ce980550be8981fe40325506c39a45f (diff)
downloadbcm5719-llvm-eb5a39deb2f4fe7091c6a716a4ce3a88b9898ec4.tar.gz
bcm5719-llvm-eb5a39deb2f4fe7091c6a716a4ce3a88b9898ec4.zip
When instantiating a non-type template parameter pack, be sure to
extract the appropriate argument from the argument pack (based on the current substitution index, of course). Simple instantiation of pack expansions involving non-type template parameter packs now works. llvm-svn: 122532
Diffstat (limited to 'clang/lib/Sema/SemaTemplateVariadic.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplateVariadic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaTemplateVariadic.cpp b/clang/lib/Sema/SemaTemplateVariadic.cpp
index fe30ba5845f..3dac8a04080 100644
--- a/clang/lib/Sema/SemaTemplateVariadic.cpp
+++ b/clang/lib/Sema/SemaTemplateVariadic.cpp
@@ -395,7 +395,7 @@ bool Sema::CheckParameterPacksForExpansion(SourceLocation EllipsisLoc,
// If we don't have a template argument at this depth/index, then we
// cannot expand the pack expansion. Make a note of this, but we still
- // want to check that any parameter packs we *do* have arguments for.
+ // want to check any parameter packs we *do* have arguments for.
if (!TemplateArgs.hasTemplateArgument(Depth, Index)) {
ShouldExpand = false;
continue;
OpenPOWER on IntegriCloud