Skip to content

Commit 0cf4f81

Browse files
committed
Adding an assertion back.
This assert was removed in 98339f1, but during post-commit review, it was pointed out that the assert was valid.
1 parent 9d2c859 commit 0cf4f81

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Sema/SemaConcept.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,8 @@ ReturnTypeRequirement(TemplateParameterList *TPL) :
10621062
assert(TPL->size() == 1);
10631063
const TypeConstraint *TC =
10641064
cast<TemplateTypeParmDecl>(TPL->getParam(0))->getTypeConstraint();
1065+
assert(TC &&
1066+
"TPL must have a template type parameter with a type constraint");
10651067
auto *Constraint =
10661068
cast<ConceptSpecializationExpr>(TC->getImmediatelyDeclaredConstraint());
10671069
bool Dependent =

0 commit comments

Comments
 (0)