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

In get_out_reg() assert that the requested outreg position is 0 when the node is not mode_T.

parent f0bc18d3
......@@ -124,6 +124,7 @@ static const arch_register_t *get_out_reg(const ir_node *irn, int pos)
/* Proj with the corresponding projnum for the register */
if (get_irn_mode(irn) != mode_T) {
assert(pos == 0);
reg = arch_get_irn_register(arch_env, irn);
} else if (is_ia32_irn(irn)) {
reg = get_ia32_out_reg(irn, pos);
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