Skip to content

Commit bb4e716

Browse files
committed
fix crash
1 parent df317c0 commit bb4e716

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/include/clang/Sema/SemaConcept.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ struct NormalizedConstraint {
157157
}
158158

159159
bool hasParameterMapping() const {
160-
assert(getKind() != ConstraintKind::Compound);
161-
return Atomic.Args != nullptr;
160+
return getKind() != ConstraintKind::Compound
161+
&& Atomic.Args != nullptr;
162162
}
163163

164164
const OccurenceList &mappingOccurenceList() const {

0 commit comments

Comments
 (0)