From fe49319b78e1670a09a150b79a1dea01880798c2 Mon Sep 17 00:00:00 2001 From: Andreas Zwinkau Date: Fri, 6 May 2011 18:43:38 +0200 Subject: [PATCH] Reenable asserts They were commented out in commit c4686a6b --- ir/ana/irouts.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ir/ana/irouts.c b/ir/ana/irouts.c index 3cc6f30e8..d2ff583d1 100644 --- a/ir/ana/irouts.c +++ b/ir/ana/irouts.c @@ -68,7 +68,7 @@ int get_irn_n_outs(const ir_node *node) { assert(node && node->kind == k_ir_node); #ifdef DEBUG_libfirm - /* assert(node->out_valid); */ + assert(node->out_valid); #endif /* defined DEBUG_libfirm */ /* we misuse the first for the size info of the out array */ return node->out[0].pos; @@ -79,7 +79,7 @@ ir_node *get_irn_out(const ir_node *def, int pos) { assert(pos >= 0 && pos < get_irn_n_outs(def)); #ifdef DEBUG_libfirm - /* assert(def->out_valid); */ + assert(def->out_valid); #endif /* defined DEBUG_libfirm */ return def->out[pos+1].use; } @@ -89,7 +89,7 @@ ir_node *get_irn_out_ex(const ir_node *def, int pos, int *in_pos) { assert(pos >= 0 && pos < get_irn_n_outs(def)); #ifdef DEBUG_libfirm - /* assert(def->out_valid); */ + assert(def->out_valid); #endif /* defined DEBUG_libfirm */ *in_pos = def->out[pos+1].pos; return def->out[pos+1].use; @@ -100,7 +100,7 @@ void set_irn_out(ir_node *def, int pos, ir_node *use, int in_pos) assert(def && use); assert(pos >= 0 && pos < get_irn_n_outs(def)); #ifdef DEBUG_libfirm - def->out_valid = 1; /* assume that this function is used correctly */ + assert(def->out_valid); #endif /* defined DEBUG_libfirm */ def->out[pos+1].use = use; def->out[pos+1].pos = in_pos; -- 2.20.1