From 0d9254204be101a26d09eb120d072c88aebc8efa Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Wed, 9 Aug 2023 13:03:21 -0500 Subject: [PATCH] nir: Add a do to the do/while in nir_const_value_t_array() Part-of: --- src/compiler/nir/nir.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 60f8df8cad1..6a09216f610 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -284,7 +284,7 @@ typedef union { } nir_const_value; #define nir_const_value_to_array(arr, c, components, m) \ -{ \ +do { \ for (unsigned i = 0; i < components; ++i) \ arr[i] = c[i].m; \ } while (false)