Skip to content

Commit 5a8e5cb

Browse files
committed
Rephrase & Format
1 parent 90b15d9 commit 5a8e5cb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/lib/Sema/SemaConcept.cpp

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

0 commit comments

Comments
 (0)