diff options
Diffstat (limited to 'src/glsl/nir/nir_live_variables.c')
-rw-r--r-- | src/glsl/nir/nir_live_variables.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/nir/nir_live_variables.c b/src/glsl/nir/nir_live_variables.c index b57ca3a2780..1c96dcf36c5 100644 --- a/src/glsl/nir/nir_live_variables.c +++ b/src/glsl/nir/nir_live_variables.c @@ -26,7 +26,7 @@ #include "nir.h" #include "nir_worklist.h" -#include "c99_alloca.h" +#include "nir_vla.h" /* * Basic liveness analysis. This works only in SSA form. @@ -131,7 +131,7 @@ static bool propagate_across_edge(nir_block *pred, nir_block *succ, struct live_variables_state *state) { - BITSET_WORD *live = alloca(state->bitset_words * sizeof *live); + NIR_VLA(BITSET_WORD, live, state->bitset_words); memcpy(live, succ->live_in, state->bitset_words * sizeof *live); nir_foreach_instr(succ, instr) { |