Commit 0fe16709 authored by Götz Lindenmaier's avatar Götz Lindenmaier
Browse files

bugfix for jack

[r3905]
parent 4af4d7a8
...@@ -168,14 +168,16 @@ static int optimize_load(ir_node *load) ...@@ -168,14 +168,16 @@ static int optimize_load(ir_node *load)
exchange( info->projs[pn_Load_M], mem ); exchange( info->projs[pn_Load_M], mem );
} }
else { else {
set_Proj_pred(info->projs[pn_Load_res], pred); if (info->projs[pn_Load_res]) {
set_nodes_block(info->projs[pn_Load_res], get_nodes_block(pred)); set_Proj_pred(info->projs[pn_Load_res], pred);
exchange( info->projs[pn_Load_M], mem ); set_nodes_block(info->projs[pn_Load_res], get_nodes_block(pred));
}
exchange(info->projs[pn_Load_M], mem);
} }
/* no exception */ /* no exception */
if (info->projs[pn_Load_X_except]) if (info->projs[pn_Load_X_except])
exchange( info->projs[pn_Load_X_except], new_Bad()); exchange(info->projs[pn_Load_X_except], new_Bad());
res = 1; res = 1;
} }
......
Supports Markdown
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