X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firprog_t.h;h=d6fb5e1b8249c7afd8606fea6e902453dcf62ec8;hb=581e5849ae58a13ab250626059da2abb506f24a6;hp=c75467eac7ed2ae2499856013046ce5730ba5519;hpb=bb9f2e36362333c6635b89f5258171b06c786608;p=libfirm diff --git a/ir/ir/irprog_t.h b/ir/ir/irprog_t.h index c75467eac..d6fb5e1b8 100644 --- a/ir/ir/irprog_t.h +++ b/ir/ir/irprog_t.h @@ -76,7 +76,7 @@ _get_irp_n_irgs(void) { static inline ir_graph * _get_irp_irg(int pos){ if (get_visit_pseudo_irgs()) return get_irp_allirg(pos); - assert(0 <= pos && pos <= _get_irp_n_irgs()); + assert(0 <= pos && pos <= ARR_LEN(irp->graphs)); return irp->graphs[pos]; } @@ -118,14 +118,12 @@ _get_irp_opcode(int pos) { return irp->opcodes[pos]; } -#ifdef DEBUG_libfirm /** Returns a new, unique number to number nodes or the like. */ static inline long get_irp_new_node_nr(void) { assert(irp); return irp->max_node_nr++; } -#endif /* DEBUG_libfirm */ static inline int get_irp_new_irg_idx(void) {