X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firnode_t.h;h=cf498015fbf6bd0d1cdde18fee97bbc77f42a4a8;hb=8711df01fa5919e55a10ac1e8a594bde1a2b6e46;hp=9104c371e7ecf90fa03e0ebef320d713411909be;hpb=3011d96c08374f215cc300d871e168372eb1859e;p=libfirm diff --git a/ir/ir/irnode_t.h b/ir/ir/irnode_t.h index 9104c371e..cf498015f 100644 --- a/ir/ir/irnode_t.h +++ b/ir/ir/irnode_t.h @@ -225,13 +225,8 @@ static inline int ir_has_irg_ref(const ir_node *node) static inline ir_graph *get_irn_irg_(const ir_node *node) { - /* - * Do not use get_nodes_block() here, because this - * will check the pinned state. - * However even a 'wrong' block is always in the proper irg. - */ if (! is_Block(node)) - node = get_irn_n(node, -1); + node = get_nodes_block(node); assert(ir_has_irg_ref(node)); return node->attr.irg.irg; }