Skip to content

Commit 2e95a41

Browse files
committed
Rephrase & Format
1 parent be41641 commit 2e95a41

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/lib/Sema/SemaConcept.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -615,10 +615,8 @@ bool Sema::SetupConstraintScope(
615615
// reference the original primary template.
616616
// We walk up the instantiated template chain so that nested lambdas get
617617
// handled properly.
618-
// Note that we shall not collect instantiated parameters from
619-
// 'intermediate' transformed function templates but the primary template
620-
// for which we have built up the template arguments relative to. Otherwise,
621-
// we may have mismatched template parameter depth!
618+
// We should only collect instantiated parameters from the primary template.
619+
// Otherwise, we may have mismatched template parameter depth!
622620
if (FunctionTemplateDecl *FromMemTempl =
623621
PrimaryTemplate->getInstantiatedFromMemberTemplate()) {
624622
while (FromMemTempl->getInstantiatedFromMemberTemplate())

0 commit comments

Comments
 (0)