From 46787fc2d0f779d287ed78e11a48a1f8e82b7aa6 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Wed, 8 Jan 2025 12:32:37 +0000 Subject: [PATCH] aco/util: fix bit_reference::operator&= Signed-off-by: Rhys Perry Reviewed-by: Georg Lehmann Backport-to: 24.3 Part-of: --- src/amd/compiler/aco_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }