Commit 358e2aef authored by Adam Szalkowski's avatar Adam Szalkowski
Browse files

get frame from irg instead from spill (the spill could be a PhiM!)

parent 39e27d1f
......@@ -724,11 +724,12 @@ static void ia32_perform_memory_operand(const void *self, ir_node *irn, ir_node
set_ia32_op_type(irn, ia32_AddrModeS);
set_ia32_am_flavour(irn, ia32_B);
set_ia32_ls_mode(irn, get_irn_mode(get_irn_n(irn, i)));
//TODO this will fail, if spill is a PhiM (give PhiMs entities?)
set_ia32_frame_ent(irn, be_get_frame_entity(spill));
set_irn_n(irn, 0, be_get_Spill_frame(spill));
set_irn_n(irn, 0, get_irg_frame(get_irn_irg(irn)));
set_irn_n(irn, 4, spill);
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