From cb27b668ff641b07ea3a92f18cec67407563663e Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 7 Jul 2006 11:25:31 +0000 Subject: [PATCH] _phase_get_irn_data() can handle constant phases (removes some warnings) [r8018] --- ir/ir/irphase_t.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ir/ir/irphase_t.h b/ir/ir/irphase_t.h index 0eca0039c..26f559931 100644 --- a/ir/ir/irphase_t.h +++ b/ir/ir/irphase_t.h @@ -145,7 +145,7 @@ static INLINE void _private_phase_enlarge(phase_t *phase, unsigned max_idx) */ #define _private_phase_assure_capacity(ph, max_idx) ((max_idx) >= (ph)->n_data_ptr ? (_private_phase_enlarge((ph), (max_idx)), 1) : 1) -static INLINE void *_phase_get_irn_data(phase_t *ph, const ir_node *irn) +static INLINE void *_phase_get_irn_data(const phase_t *ph, const ir_node *irn) { unsigned idx = get_irn_idx(irn); return idx < ph->n_data_ptr ? ph->data_ptr[idx] : NULL; -- 2.20.1