Commit 88c4c31f authored by Manuel Mohr's avatar Manuel Mohr
Browse files

Fix verifier: allow SymConst nodes with symconst_ofs_ent.

These SymConst nodes have an attached entity whose owner type is not a segment.
parent 2988afe2
......@@ -875,7 +875,7 @@ static int verify_node_SymConst(const ir_node *n)
/* SymConst: BB --> ref */
mode_is_reference(mymode))
,"SymConst node", 0);
if (SYMCONST_HAS_ENT(get_SymConst_kind(n))) {
if (get_SymConst_kind(n) == symconst_addr_ent) {
ir_entity *ent = get_SymConst_entity(n);
/* the is_method_entity(ent) exception is for nested functions... */
ASSERT_AND_RET_DBG((get_entity_owner(ent)->flags & tf_segment)
......
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