Skip to content

Commit 23ec536

Browse files
committed
Address feedback
1 parent ca33e1a commit 23ec536

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

clang/lib/Sema/SemaConcept.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)