state.phi_builder = nir_phi_builder_create(state.impl);
- NIR_VLA(BITSET_WORD, store_blocks, BITSET_WORDS(state.impl->num_blocks));
+ BITSET_WORD *store_blocks =
+ ralloc_array(state.dead_ctx, BITSET_WORD,
+ BITSET_WORDS(state.impl->num_blocks));
foreach_list_typed(struct deref_node, node, direct_derefs_link,
&state.direct_deref_nodes) {
if (!node->lower_to_ssa)
memset(store_blocks, 0,
BITSET_WORDS(state.impl->num_blocks) * sizeof(*store_blocks));
- assert(node->path.path[0]->var->constant_initializer == NULL);
+ assert(node->path.path[0]->var->constant_initializer == NULL &&
+ node->path.path[0]->var->pointer_initializer == NULL);
if (node->stores) {
set_foreach(node->stores, store_entry) {