From: Michael Beck Date: Wed, 22 Jun 2005 17:16:53 +0000 (+0000) Subject: fixed DBG_OPT_RAW() call X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=5992483ac7f47c78e5315897faf715fc840f32ce;p=libfirm fixed DBG_OPT_RAW() call [r6104] --- diff --git a/ir/opt/ldstopt.c b/ir/opt/ldstopt.c index 6dc6ba1bf..d53587917 100644 --- a/ir/opt/ldstopt.c +++ b/ir/opt/ldstopt.c @@ -549,8 +549,10 @@ static int optimize_load(ir_node *load) */ if ((!pred_info->projs[pn_Store_X_except] && !info->projs[pn_Load_X_except]) || get_nodes_block(load) == get_nodes_block(pred)) { - DBG_OPT_RAW(load, pred); - exchange( info->projs[pn_Load_res], get_Store_value(pred) ); + ir_node *value = get_Store_value(pred); + + DBG_OPT_RAW(load, value); + exchange(info->projs[pn_Load_res], value); if (info->projs[pn_Load_M]) exchange(info->projs[pn_Load_M], mem);