Commit 0cd91c80 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Small cleanup

[r8725]
parent bcfa3a6d
......@@ -114,7 +114,7 @@ static ir_node *search_def_and_create_phis(ir_node *block, ir_mode *mode)
}
// create a new phi
in = alloca(sizeof(in[0]) * n_cfgpreds);
NEW_ARR_A(ir_node*, in, n_cfgpreds);
for(i = 0; i < n_cfgpreds; ++i)
in[i] = new_Unknown(mode);
......@@ -126,9 +126,8 @@ static ir_node *search_def_and_create_phis(ir_node *block, ir_mode *mode)
// set phi preds
for(i = 0; i < n_cfgpreds; ++i) {
ir_node *pred_block = get_Block_cfgpred_block(block, i);
ir_node *pred_val;
ir_node *pred_val = search_def_and_create_phis(pred_block, mode);
pred_val = search_def_and_create_phis(pred_block, mode);
set_irn_n(phi, i, pred_val);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment