fixed definition of phase init function
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Mon, 1 May 2006 14:31:03 +0000 (14:31 +0000)
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Mon, 1 May 2006 14:31:03 +0000 (14:31 +0000)
added missing return type for an inlined function

ir/be/becopyheur2.c

index 0cb628d..0fba13d 100644 (file)
@@ -82,7 +82,7 @@ typedef struct {
 
 #define get_co2_irn(co2, irn)   ((co2_irn_t *) phase_get_or_set_irn_data(&co2->ph, irn))
 
-static void co2_irn_init(phase_t *ph, ir_node *irn, void *data)
+static void co2_irn_init(phase_t *ph, const ir_node *irn, void *data)
 {
        co2_t *env    = (co2_t *) ph;
        co2_irn_t *ci = data;
@@ -159,7 +159,7 @@ static col_t get_col(co2_t *env, ir_node *irn)
        return ci->tmp_fixed ? ci->tmp_col : ci->orig_col;
 }
 
-static INLINE color_is_fix(co2_t *env, ir_node *irn)
+static INLINE int color_is_fix(co2_t *env, ir_node *irn)
 {
        co2_irn_t *ci = get_co2_irn(env, irn);
        return ci->fixed || ci->tmp_fixed;