summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplateDeduction.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-01-14 21:20:45 +0000
committerDouglas Gregor <dgregor@apple.com>2011-01-14 21:20:45 +0000
commitb884000ba92e5ed86fd0921c3f16548541be8c5f (patch)
tree6b9fa3f9af9b588e21fb9d2486fce180e91fad25 /clang/lib/Sema/SemaTemplateDeduction.cpp
parentfa38041dac44dff6b86b39981b2b7f9abcde574c (diff)
downloadbcm5719-llvm-b884000ba92e5ed86fd0921c3f16548541be8c5f.tar.gz
bcm5719-llvm-b884000ba92e5ed86fd0921c3f16548541be8c5f.zip
Teach PackExpansionExpr to keep track of the number of pack expansions
it will expand to, if known. Propagate this information throughout Sema. llvm-svn: 123470
Diffstat (limited to 'clang/lib/Sema/SemaTemplateDeduction.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplateDeduction.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaTemplateDeduction.cpp b/clang/lib/Sema/SemaTemplateDeduction.cpp
index c03a778a650..fddd14e28bf 100644
--- a/clang/lib/Sema/SemaTemplateDeduction.cpp
+++ b/clang/lib/Sema/SemaTemplateDeduction.cpp
@@ -1463,9 +1463,6 @@ DeduceTemplateArguments(Sema &S,
unsigned ArgIdx = 0, ParamIdx = 0;
for (; hasTemplateArgumentForDeduction(Params, ParamIdx, NumParams);
++ParamIdx) {
- // FIXME: Variadic templates.
- // What do we do if the argument is a pack expansion?
-
if (!Params[ParamIdx].isPackExpansion()) {
// The simple case: deduce template arguments by matching Pi and Ai.
OpenPOWER on IntegriCloud