forked from OSchip/llvm-project
Adding an assertion back.
This assert was removed in 98339f14a0
,
but during post-commit review, it was pointed out that the assert was
valid.
This commit is contained in:
parent
9d2c859ebb
commit
0cf4f81082
|
@ -1062,6 +1062,8 @@ ReturnTypeRequirement(TemplateParameterList *TPL) :
|
||||||
assert(TPL->size() == 1);
|
assert(TPL->size() == 1);
|
||||||
const TypeConstraint *TC =
|
const TypeConstraint *TC =
|
||||||
cast<TemplateTypeParmDecl>(TPL->getParam(0))->getTypeConstraint();
|
cast<TemplateTypeParmDecl>(TPL->getParam(0))->getTypeConstraint();
|
||||||
|
assert(TC &&
|
||||||
|
"TPL must have a template type parameter with a type constraint");
|
||||||
auto *Constraint =
|
auto *Constraint =
|
||||||
cast<ConceptSpecializationExpr>(TC->getImmediatelyDeclaredConstraint());
|
cast<ConceptSpecializationExpr>(TC->getImmediatelyDeclaredConstraint());
|
||||||
bool Dependent =
|
bool Dependent =
|
||||||
|
|
Loading…
Reference in New Issue