Commit a676ad45 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Assert that ia32_perform_memory_operand() only tries to fold a reload into a...

Assert that ia32_perform_memory_operand() only tries to fold a reload into a node, which has NoMem as memory input.

[r22654]
parent 33ac24a2
......@@ -889,6 +889,8 @@ static void ia32_perform_memory_operand(ir_node *irn, ir_node *spill,
i = n_ia32_binary_right;
}
assert(is_NoMem(get_irn_n(irn, n_ia32_mem)));
set_irn_n(irn, n_ia32_base, get_irg_frame(get_irn_irg(irn)));
set_irn_n(irn, n_ia32_mem, spill);
set_irn_n(irn, i, ia32_get_admissible_noreg(ia32_current_cg, irn, i));
......
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