File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -754,6 +754,7 @@ ExprResult CalculateConstraintSatisfaction::Calculate(
754754
755755 llvm::SmallVector<TemplateArgument> SubstitutedOuterMost;
756756 // FIXME: Is PackSubstitutionIndex correct?
757+ // TODO: We might want to cache the substitution of fold expanded constraints.
757758 llvm::SaveAndRestore _ (PackSubstitutionIndex, S.ArgPackSubstIndex );
758759 std::optional<MultiLevelTemplateArgumentList> SubstitutedArgs =
759760 SubstitutionInTemplateArguments (
@@ -832,6 +833,8 @@ ExprResult CalculateConstraintSatisfaction::Calculate(
832833 if (Satisfaction.IsSatisfied )
833834 return E;
834835
836+ // TODO: We might want to cache the substitution of concept id constraints
837+ // as it can be slow in the SFINAE case.
835838 llvm::SmallVector<TemplateArgument> SubstitutedOuterMost;
836839 std::optional<MultiLevelTemplateArgumentList> SubstitutedArgs =
837840 SubstitutionInTemplateArguments (Constraint, MLTAL, SubstitutedOuterMost);
You can’t perform that action at this time.
0 commit comments