diff --git a/src/amd/compiler/aco_util.h b/src/amd/compiler/aco_util.h index 06f1b748e5c..607b10e31cb 100644 --- a/src/amd/compiler/aco_util.h +++ b/src/amd/compiler/aco_util.h @@ -793,7 +793,7 @@ template struct bit_reference { constexpr bit_reference& operator&=(bool val) { - storage &= T(val) << bit; + storage &= ~(T(!val) << bit); return *this; }