From 87106caf72d92745d08a4d12ec08848c4382792b Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 19 Jan 2009 19:15:08 +0000 Subject: [PATCH] assert that edges are enabled before using them [r25269] --- ir/ir/iredges_t.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ir/ir/iredges_t.h b/ir/ir/iredges_t.h index 07f8d733f..d82e8a6c6 100644 --- a/ir/ir/iredges_t.h +++ b/ir/ir/iredges_t.h @@ -78,7 +78,9 @@ struct _ir_edge_t { */ static inline const ir_edge_t *_get_irn_out_edge_first_kind(const ir_node *irn, ir_edge_kind_t kind) { - const struct list_head *head = _get_irn_outs_head(irn, kind); + const struct list_head *head; + assert(edges_activated_kind(get_irn_irg(irn), kind)); + head = _get_irn_outs_head(irn, kind); return list_empty(head) ? NULL : list_entry(head->next, ir_edge_t, list); } -- 2.20.1