Skip to content

Commit d87dc5a

Browse files
committed
Fix &&
1 parent dbb9bea commit d87dc5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FindIntrinsics.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ class FindIntrinsics : public IRMutator {
747747
auto b_bounds = constant_integer_bounds(b);
748748
const int max_shift = op->type.bits() - 1;
749749

750-
if (a.defined() & b_bounds >= -max_shift && b_bounds <= max_shift) {
750+
if (a.defined() && b_bounds >= -max_shift && b_bounds <= max_shift) {
751751
if (!is_saturated ||
752752
(shift->is_intrinsic(Call::rounding_shift_right) && can_prove(b >= 0)) ||
753753
(shift->is_intrinsic(Call::rounding_shift_left) && can_prove(b <= 0))) {

0 commit comments

Comments
 (0)