Skip to content

Commit 8568113

Browse files
committed
Fix Wparentheses warning. NFCI.
Wrap the containErrors() calls together - assert we have any containErrors cases in the conditional operator.
1 parent 0716805 commit 8568113

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Sema/SemaExpr.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8071,9 +8071,9 @@ QualType Sema::CheckConditionalOperands(ExprResult &Cond, ExprResult &LHS,
80718071
(Cond.get()->isTypeDependent() || LHS.get()->isTypeDependent() ||
80728072
RHS.get()->isTypeDependent())) {
80738073
assert(!getLangOpts().CPlusPlus);
8074-
assert(Cond.get()->containsErrors() || LHS.get()->containsErrors() ||
8075-
RHS.get()->containsErrors() &&
8076-
"should only occur in error-recovery path.");
8074+
assert((Cond.get()->containsErrors() || LHS.get()->containsErrors() ||
8075+
RHS.get()->containsErrors()) &&
8076+
"should only occur in error-recovery path.");
80778077
return Context.DependentTy;
80788078
}
80798079

0 commit comments

Comments
 (0)