From e6bf6fb807895ea02cbe52ccf3cfdea52980e9ca Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Mon, 3 Mar 2008 16:14:47 +0000 Subject: [PATCH] removed useless environment [r17947] --- ir/ir/irssacons.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/ir/ir/irssacons.c b/ir/ir/irssacons.c index 4d653f753..2aa5141be 100644 --- a/ir/ir/irssacons.c +++ b/ir/ir/irssacons.c @@ -32,16 +32,12 @@ #include "irnode_t.h" #include "irgwalk.h" -typedef struct walk_env_t { - int n_loc; /**< Number of newly allocated locations. */ -} walk_env; - /** * Post-walker: prepare the graph nodes for new SSA construction cycle by allocation * new arrays. */ -static void prepare_nodes(ir_node *irn, void *ctx) { - walk_env *env = ctx; +static void prepare_nodes(ir_node *irn, void *env) { + (void)env; switch (get_irn_opcode(irn)) { case iro_Block: @@ -113,8 +109,6 @@ static void prepare_nodes(ir_node *irn, void *ctx) { * to construct new values. */ void ssa_cons_start(ir_graph *irg, int n_loc) { - walk_env env; - /* for now we support only phase_high graphs */ assert(irg->phase_state == phase_high); @@ -128,7 +122,7 @@ void ssa_cons_start(ir_graph *irg, int n_loc) { * seems worth to do this. First, we have to check if they really exists and * then clear them. We do not expect SSA construction is used often. */ - irg_walk_graph(irg, NULL, prepare_nodes, &env); + irg_walk_graph(irg, NULL, prepare_nodes, NULL); } /** -- 2.20.1