We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8376bb commit c4ada13Copy full SHA for c4ada13
clang/lib/Sema/SemaExprCXX.cpp
@@ -9072,8 +9072,10 @@ Sema::BuildExprRequirement(
9072
MultiLevelTemplateArgumentList MLTAL(Param, TAL.asArray(),
9073
/*Final=*/false);
9074
MLTAL.addOuterRetainedLevels(TPL->getDepth());
9075
- Expr *IDC = Param->getTypeConstraint()->getImmediatelyDeclaredConstraint();
9076
- ExprResult Constraint = SubstExpr(IDC, MLTAL);
+ const TypeConstraint *TC = Param->getTypeConstraint();
+ assert(TC && "Type Constraint cannot be null here");
9077
+ ExprResult Constraint =
9078
+ SubstExpr(TC->getImmediatelyDeclaredConstraint(), MLTAL);
9079
if (Constraint.isInvalid()) {
9080
Status = concepts::ExprRequirement::SS_ExprSubstitutionFailure;
9081
} else {
0 commit comments