Skip to content

Commit a0dd009

Browse files
committed
fix some tests
1 parent 1114123 commit a0dd009

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/SemaConcept.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -805,10 +805,10 @@ static bool CheckConstraintSatisfaction(
805805
S, *C, Template, TemplateIDRange.getBegin(), TemplateArgsLists,
806806
Satisfaction, S.ArgPackSubstIndex);
807807

808-
if (ConvertedExpr)
808+
if (Res.isUsable() && ConvertedExpr)
809809
*ConvertedExpr = Res.get();
810810

811-
return !Res.isUsable();
811+
return false;
812812
}
813813

814814
bool Sema::CheckConstraintSatisfaction(

0 commit comments

Comments
 (0)