PR #10358: Fix use of bitwise and with boolean operands
PR #10358: Fix use of bitwise and with boolean operands

Imported from GitHub PR https://github.com/openxla/xla/pull/10358

Clang diagnostics reported `use of bitwise '&' with boolean operands` issue

[-Wbitwise-instead-of-logical](https://clang.llvm.org/docs/DiagnosticsReference.html#id82)

Diagnostic text: warning: use of bitwise '&' with boolean operands


Copybara import of the project:

--
3e23fa682693e693eb8373b1e2238e56ac91489b by Alexander Pivovarov <pivovaa@amazon.com>:

Fix use of bitwise and with boolean operands

Merging this change closes #10358

FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/openxla/xla/pull/10358 from apivovarov:bitwise_bool 3e23fa682693e693eb8373b1e2238e56ac91489b
