Fix yet another bug to do with IR register outputs.
This commit is contained in:
parent
9504aec2bd
commit
0eb32e7553
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ static struct insn* walk_instructions(struct burm_node* node, int goal)
|
||||||
hop_print('I', current_hop);
|
hop_print('I', current_hop);
|
||||||
array_append(¤t_bb->hops, current_hop);
|
array_append(¤t_bb->hops, current_hop);
|
||||||
|
|
||||||
if (goal != burm_stmt_NT)
|
if ((goal != burm_stmt_NT) && !insn->ir->result)
|
||||||
insn->ir->result = insn->hop->output;
|
insn->ir->result = insn->hop->output;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue