X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firprog_t.h;h=46f2d438b5560ce9910c702cd4389877b5fd31e8;hb=cb91bddc9cacdab7c28e4336847bd3dc248aa549;hp=8b003fbce4b0f25077ce1d37dc315b72b42aba2f;hpb=2eb0f163fcef20607832ad540b68ee1e33b51007;p=libfirm diff --git a/ir/ir/irprog_t.h b/ir/ir/irprog_t.h index 8b003fbce..46f2d438b 100644 --- a/ir/ir/irprog_t.h +++ b/ir/ir/irprog_t.h @@ -80,14 +80,12 @@ __get_glob_type(void) { static INLINE int __get_irp_n_irgs(void) { assert (irp && irp->graphs); - /* Strangely the first element of the array is NULL. Why?? */ return (ARR_LEN((irp)->graphs)); } static INLINE ir_graph * __get_irp_irg(int pos){ assert (irp && irp->graphs); - /* Strangely the first element of the array is NULL. Why?? */ return irp->graphs[pos]; } @@ -95,14 +93,12 @@ __get_irp_irg(int pos){ static INLINE int __get_irp_n_types (void) { assert (irp && irp->types); - /* Strangely the first element of the array is NULL. Why?? */ return (ARR_LEN((irp)->types)); } static INLINE type * __get_irp_type(int pos) { assert (irp && irp->types); - /* Strangely the first element of the array is NULL. Why?? */ /* Don't set the skip_tid result so that no double entries are generated. */ return skip_tid(irp->types[pos]); }