File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,10 @@ Solution ConstraintSystem::finalize() {
213213 solution.ImplicitCallAsFunctionRoots .insert (implicitRoot);
214214 }
215215
216+ for (const auto &env : PackExpansionEnvironments) {
217+ solution.PackExpansionEnvironments .insert (env);
218+ }
219+
216220 return solution;
217221}
218222
Original file line number Diff line number Diff line change @@ -1578,6 +1578,16 @@ void ConstraintSystem::print(raw_ostream &out) const {
15781578 }
15791579 }
15801580
1581+ if (!PackExpansionEnvironments.empty ()) {
1582+ out.indent (indent) << " Pack Expansion Environments:\n " ;
1583+ for (const auto &env : PackExpansionEnvironments) {
1584+ out.indent (indent + 2 );
1585+ env.first ->dump (&getASTContext ().SourceMgr , out);
1586+ out << " = (" << env.second .first << " , "
1587+ << env.second .second ->getString (PO) << " )" << ' \n ' ;
1588+ }
1589+ }
1590+
15811591 if (!DefaultedConstraints.empty ()) {
15821592 out.indent (indent) << " Defaulted constraints:\n " ;
15831593 interleave (DefaultedConstraints, [&](ConstraintLocator *locator) {
You can’t perform that action at this time.
0 commit comments