Skip to content

Commit 2f1399c

Browse files
committed
clang/APINotes: fix parenthesization of &&, ||
Follow up on 59edb43 (clang/APINotes: squelch a -Wparantheses warning (NFC)) to fix parenthesization, as requested by David Blaikie.
1 parent 5259e14 commit 2f1399c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/APINotes/APINotesManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class APINotesManager {
159159
ArrayRef<APINotesReader *> getCurrentModuleReaders() const {
160160
bool HasPublic = CurrentModuleReaders[ReaderKind::Public];
161161
bool HasPrivate = CurrentModuleReaders[ReaderKind::Private];
162-
assert(!HasPrivate || (HasPublic && "private module requires public module"));
162+
assert((!HasPrivate || HasPublic) && "private module requires public module");
163163
if (!HasPrivate && !HasPublic)
164164
return {};
165165
return ArrayRef(CurrentModuleReaders).slice(0, HasPrivate ? 2 : 1);

0 commit comments

Comments
 (0)