projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make testcase return 0 in main
[libfirm]
/
ir
/
common
/
irtools.c
diff --git
a/ir/common/irtools.c
b/ir/common/irtools.c
index
133c930
..
dea407c
100644
(file)
--- a/
ir/common/irtools.c
+++ b/
ir/common/irtools.c
@@
-75,10
+75,10
@@
copy_irn_to_irg(ir_node *n, ir_graph *irg) {
else if (op == op_Proj) {
old_irg = get_irn_irg(n);
else if (op == op_Proj) {
old_irg = get_irn_irg(n);
- if (n == get_irg_frame(old_irg))
+ if (n == get_irg_initial_exec(old_irg))
+ nn = get_irg_initial_exec(irg);
+ else if (n == get_irg_frame(old_irg))
nn = get_irg_frame(irg);
nn = get_irg_frame(irg);
- else if (n == get_irg_globals(old_irg))
- nn = get_irg_globals(irg);
else if (n == get_irg_initial_mem(old_irg))
nn = get_irg_initial_mem(irg);
else if (n == get_irg_args(old_irg))
else if (n == get_irg_initial_mem(old_irg))
nn = get_irg_initial_mem(irg);
else if (n == get_irg_args(old_irg))