Commit b9deb108 authored by Matthias Braun's avatar Matthias Braun
Browse files

don't ignore entities in Sels

[r27133]
parent bf362fd8
......@@ -45,12 +45,16 @@ static void visit_node(ir_node *node, void *env)
ir_entity *entity;
(void) env;
if (!is_SymConst(node))
return;
if (!SYMCONST_HAS_ENT(get_SymConst_kind(node)))
if (is_SymConst(node)) {
if (!SYMCONST_HAS_ENT(get_SymConst_kind(node)))
return;
entity = get_SymConst_entity(node);
} else if (is_Sel(node)) {
entity = get_Sel_entity(node);
} else {
return;
}
entity = get_SymConst_entity(node);
visit_entity(entity);
}
......
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