Skip to content

Commit 0f2b781

Browse files
committed
fix crash
1 parent 7c55515 commit 0f2b781

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
@@ -1602,6 +1602,8 @@ NormalizedConstraint::fromConstraintExpr(Sema &S, NamedDecl *D, const Expr *E) {
16021602
: CCK_Disjunction);
16031603
}
16041604
auto Sub = fromConstraintExpr(S, D, FE->getPattern());
1605+
if (!Sub)
1606+
return std::nullopt;
16051607
return NormalizedConstraint{new (S.Context) FoldExpandedConstraint{
16061608
Kind, std::move(*Sub), FE->getPattern()}};
16071609
}

0 commit comments

Comments
 (0)