projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7152d62
)
Assert that the given node in set_r_cur_block() has mode BB.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 1 Jun 2011 06:20:31 +0000
(08:20 +0200)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 1 Jun 2011 06:23:25 +0000
(08:23 +0200)
ir/ir/ircons.c
patch
|
blob
|
history
diff --git
a/ir/ir/ircons.c
b/ir/ir/ircons.c
index
a3a5c17
..
d878c1d
100644
(file)
--- a/
ir/ir/ircons.c
+++ b/
ir/ir/ircons.c
@@
-557,7
+557,8
@@
void set_cur_block(ir_node *target)
void set_r_cur_block(ir_graph *irg, ir_node *target)
{
void set_r_cur_block(ir_graph *irg, ir_node *target)
{
- assert(target == NULL || irg == get_irn_irg(target));
+ assert(target == NULL || get_irn_mode(target) == mode_BB);
+ assert(target == NULL || get_irn_irg(target) == irg);
irg->current_block = target;
}
irg->current_block = target;
}