Commit 90e75f9f authored by Michael Beck's avatar Michael Beck
Browse files

assert was too restrictive

parent 59ae89e8
......@@ -135,10 +135,10 @@ static int constants_on_wrong_irg(entity *ent) {
return 1;
} else {
/* Might not be set if entity belongs to a description. */
/* Might not be set if entity belongs to a description or is external allocated. */
if (get_atomic_ent_value(ent))
return constant_on_wrong_irg(get_atomic_ent_value(ent));
else if (get_entity_visibility(ent) != visibility_external_allocated)
assert((is_class_type(get_entity_owner(ent)) &&
get_class_peculiarity(get_entity_owner(ent)) == peculiarity_description) &&
"Value in constant atomic entity not set.");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment