Fix yet another bug to do with IR register outputs.

This commit is contained in:
David Given 2016-10-15 19:14:25 +02:00
parent 9504aec2bd
commit 0eb32e7553

View file

@ -205,7 +205,7 @@ static struct insn* walk_instructions(struct burm_node* node, int goal)
hop_print('I', current_hop);
array_append(&current_bb->hops, current_hop);
if (goal != burm_stmt_NT)
if ((goal != burm_stmt_NT) && !insn->ir->result)
insn->ir->result = insn->hop->output;
}
}