projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2853e2e
)
BugFix: set_irn_n() should now work for the block input (-1)
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Mon, 20 Mar 2006 16:36:39 +0000
(16:36 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Mon, 20 Mar 2006 16:36:39 +0000
(16:36 +0000)
[r7494]
ir/ir/irnode.c
patch
|
blob
|
history
diff --git
a/ir/ir/irnode.c
b/ir/ir/irnode.c
index
568bda6
..
5e3ba55
100644
(file)
--- a/
ir/ir/irnode.c
+++ b/
ir/ir/irnode.c
@@
-159,16
+159,16
@@
new_ir_node (dbg_info *db, ir_graph *irg, ir_node *block, ir_op *op, ir_mode *mo
#if FIRM_EDGES_INPLACE
{
- int i
, n
;
- int
not_a_block = is_no
_Block(res);
+ int i;
+ int
is_bl = is
_Block(res);
INIT_LIST_HEAD(&res->edge_info.outs_head);
- if(
!not_a_block
)
+ if(
is_bl
)
INIT_LIST_HEAD(&res->attr.block.succ_head);
- for (i =
0, n = arity + not_a_block; i < n
; ++i)
- edges_notify_edge(res, i -
not_a_block
, res->in[i], NULL, irg);
+ for (i =
is_bl; i <= arity
; ++i)
+ edges_notify_edge(res, i -
1
, res->in[i], NULL, irg);
}
#endif