Commit 4cc079f8 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

SymConsts represent constant entities irrespective of variability.

[r22297]
parent 1f85a095
......@@ -257,10 +257,7 @@ static ir_entity *find_constant_entity(ir_node *ptr)
{
for (;;) {
if (is_SymConst(ptr) && get_SymConst_kind(ptr) == symconst_addr_ent) {
ir_entity *ent = get_SymConst_entity(ptr);
if (variability_constant == get_entity_variability(ent))
return ent;
return NULL;
return get_SymConst_entity(ptr);
} else if (is_Sel(ptr)) {
ir_entity *ent = get_Sel_entity(ptr);
ir_type *tp = get_entity_owner(ent);
......
Markdown is supported
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