From: Kenneth Graunke Date: Fri, 10 Feb 2023 07:47:38 +0000 (-0800) Subject: nir: Fix merge_set_dump() to compile again X-Git-Tag: upstream/23.3.3~13159 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1ebd9978c0b87533ef5069c034db258d1ca48f4;p=platform%2Fupstream%2Fmesa.git nir: Fix merge_set_dump() to compile again This #if 0'd debug code has been broken since -Werror=vla was added. Reviewed-by: Faith Ekstrand Part-of: --- diff --git a/src/compiler/nir/nir_from_ssa.c b/src/compiler/nir/nir_from_ssa.c index 32ce928..0ad2b93 100644 --- a/src/compiler/nir/nir_from_ssa.c +++ b/src/compiler/nir/nir_from_ssa.c @@ -132,7 +132,7 @@ typedef struct merge_set { static void merge_set_dump(merge_set *set, FILE *fp) { - nir_ssa_def *dom[set->size]; + NIR_VLA(nir_ssa_def *, dom, set->size); int dom_idx = -1; foreach_list_typed(merge_node, node, node, &set->nodes) {