Merge "Fix Wbitwise-instead-of-logical introduced by clang-r445002"

This commit is contained in:
Pirama Arumuga Nainar 2022-01-28 20:14:07 +00:00 committed by Gerrit Code Review
commit 9f165ca3e1

View File

@ -280,7 +280,7 @@ void ReportFile::addReport(const IncidentReportArgs& args) {
// Lower privacy policy (less restrictive) wins.
report->set_privacy_policy(args.getPrivacyPolicy());
}
report->set_all_sections(report->all_sections() | args.all());
report->set_all_sections(report->all_sections() || args.all());
for (int section: args.sections()) {
if (!has_section(*report, section)) {
report->add_section(section);