Commit cada429b authored by Michael Beck's avatar Michael Beck
Browse files

improved _get_entity_irg() implementation

[r17119]
parent e153c020
......@@ -383,12 +383,13 @@ _set_entity_link(ir_entity *ent, void *l) {
static INLINE ir_graph *
_get_entity_irg(const ir_entity *ent) {
ir_graph *irg;
assert(ent && ent->kind == k_entity);
assert(ent == unknown_entity || is_Method_type(ent->type));
if (!get_visit_pseudo_irgs() && ent->attr.mtd_attr.irg
&& is_pseudo_ir_graph(ent->attr.mtd_attr.irg))
irg = ent->attr.mtd_attr.irg;
if (irg != NULL && !get_visit_pseudo_irgs() && is_pseudo_ir_graph(irg))
return NULL;
return ent->attr.mtd_attr.irg;
return irg;
}
static INLINE unsigned long
......
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