Merge "Fix Wbitwise-instead-of-logical introduced by clang-r445002" am: 9f165ca3e1 am: 665796dd6d am: bdd7c5eb53 am: 138c4fe4bc

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1961919

Change-Id: I7cbc2ef02aa2b6f235d6a63aa008f9764188f30d
This commit is contained in:
Pirama Arumuga Nainar 2022-01-28 21:19:00 +00:00 committed by Automerger Merge Worker
commit 2810da2c61

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);