File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -2023,10 +2023,10 @@ void SubstituteParameterMappings::buildParameterMapping(
20232023 /* Depth=*/ 0 , OccurringIndices);
20242024 }
20252025 unsigned Size = OccurringIndices.count ();
2026- // It's OK when Size is 0. We build an empty parameter mapping when the atomic
2027- // constraint is independent of any template parameters, so we can distinguish
2028- // it from cases where no mapping exists at all, e.g. when there are only
2029- // atomic constraints.
2026+ // When the constraint is independent of any template parameters,
2027+ // we build an empty mapping so that we can distinguish these cases
2028+ // from cases where no mapping exists at all, e.g. when there are only atomic
2029+ // constraints.
20302030 TemplateArgumentLoc *TempArgs =
20312031 new (SemaRef.Context ) TemplateArgumentLoc[Size];
20322032 llvm::SmallVector<NamedDecl *> UsedParams;
@@ -2059,8 +2059,7 @@ bool SubstituteParameterMappings::substitute(
20592059 if (!N.hasParameterMapping ())
20602060 buildParameterMapping (N);
20612061
2062- // Don't bother into substituting if we have determined the mapping maps to
2063- // nothing.
2062+ // If the parameter mapping is empty, there is nothing to substitute.
20642063 if (N.getParameterMapping ().empty ())
20652064 return false ;
20662065
You can’t perform that action at this time.
0 commit comments