- ast2firm: descent_* must handle NULL top_type
[r18914]
top->compound_entry = entry;
top->index = 0;
- path->top_type = entry->type;
len = get_compound_size(&top_type->compound);
+ if(entry != NULL)
+ path->top_type = entry->type;
} else {
assert(is_type_array(top_type));
assert(top_type->array.size > 0);
memcpy(&result->list.initializers, initializers,
len * sizeof(initializers[0]));
+ DEL_ARR_F(initializers);
ascend_to(path, top_path_level);
return result;
return result;
end_error:
return NULL;
-
-end_error:
- ;
}
static declaration_t *append_declaration(declaration_t *declaration);