ent->values = NEW_ARR_F(ir_node *, 0);
ent->val_paths = NEW_ARR_F(compound_graph_path *, 0);
}
- if ((is_Atomic_type(ent->type)) &&
+ if ((is_atomic_type(ent->type)) &&
(ent->variability == variability_uninitialized) && (var != variability_uninitialized)) {
/* Set default constant value. */
ent->value = new_rd_Unknown(get_const_code_irg(), get_type_mode(ent->type));
type *owner = gr->tp;
for (i = 0; i <= pos; i++) {
node = get_compound_graph_path_node(gr, i);
+ if (node == NULL)
+ /* Path not yet complete. */
+ return true;
if (get_entity_owner(node) != owner) return false;
owner = get_entity_type(node);
}
if (pos == get_compound_graph_path_length(gr))
- if (!is_Atomic_type(owner)) return false;
+ if (!is_atomic_type(owner)) return false;
return true;
}