nir: Add a do to the do/while in nir_const_value_t_array()

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24382>
This commit is contained in:
Faith Ekstrand 2023-08-09 13:03:21 -05:00 committed by Marge Bot
parent bb8f143749
commit 0d9254204b

View file

@ -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)