public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9504aec
)
Fix yet another bug to do with IR register outputs.
author
David Given
<dg@cowlark.com>
Sat, 15 Oct 2016 17:14:25 +0000
(19:14 +0200)
committer
David Given
<dg@cowlark.com>
Sat, 15 Oct 2016 17:14:25 +0000
(19:14 +0200)
mach/proto/mcg/pass_instructionselection.c
patch
|
blob
|
history
diff --git
a/mach/proto/mcg/pass_instructionselection.c
b/mach/proto/mcg/pass_instructionselection.c
index
752648d
..
52adc7b
100644
(file)
--- a/
mach/proto/mcg/pass_instructionselection.c
+++ b/
mach/proto/mcg/pass_instructionselection.c
@@
-205,7
+205,7
@@
static struct insn* walk_instructions(struct burm_node* node, int goal)
hop_print('I', 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;
}
}