projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0db3da
)
Reduce code duplication: Implement set_cur_block() by calling set_r_cur_block().
author
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 1 Jun 2011 06:22:44 +0000
(08:22 +0200)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 1 Jun 2011 06:23:01 +0000
(08:23 +0200)
ir/ir/ircons.c
patch
|
blob
|
history
diff --git
a/ir/ir/ircons.c
b/ir/ir/ircons.c
index
5a8c025
..
a3a5c17
100644
(file)
--- a/
ir/ir/ircons.c
+++ b/
ir/ir/ircons.c
@@
-552,8
+552,7
@@
void add_immBlock_pred(ir_node *block, ir_node *jmp)
void set_cur_block(ir_node *target)
{
- assert(target == NULL || current_ir_graph == get_irn_irg(target));
- current_ir_graph->current_block = target;
+ set_r_cur_block(current_ir_graph, target);
}
void set_r_cur_block(ir_graph *irg, ir_node *target)