Skip to content

Commit ef46f8a

Browse files
authored
[Clang][NFC] Fix a warning in TransformNestedRequirement (#164148)
The logical or expression should be parenthesized. The issue was brought by #161671 Fixes #164104
1 parent a3082c9 commit ef46f8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Sema/SemaTemplateInstantiate.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2864,9 +2864,9 @@ TemplateInstantiator::TransformNestedRequirement(
28642864
TemplateArgs, Constraint->getSourceRange(), Satisfaction,
28652865
/*TopLevelConceptId=*/nullptr, &NewConstraint);
28662866

2867-
assert(!Success || !Trap.hasErrorOccurred() &&
2868-
"Substitution failures must be handled "
2869-
"by CheckConstraintSatisfaction.");
2867+
assert((!Success || !Trap.hasErrorOccurred()) &&
2868+
"Substitution failures must be handled "
2869+
"by CheckConstraintSatisfaction.");
28702870
}
28712871

28722872
if (!Success || Satisfaction.HasSubstitutionFailure())

0 commit comments

Comments
 (0)