projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
handle Block_entity like other node attributes
[libfirm]
/
ir
/
opt
/
cfopt.c
diff --git
a/ir/opt/cfopt.c
b/ir/opt/cfopt.c
index
7ed73c2
..
49aa772
100644
(file)
--- a/
ir/opt/cfopt.c
+++ b/
ir/opt/cfopt.c
@@
-114,7
+114,7
@@
static void collect_nodes(ir_node *n, void *ctx)
ir_node *block = get_nodes_block(n);
add_Block_phi(block, n);
} else if (is_Block(n)) {
- if (
has_Block_entity(n)
) {
+ if (
get_Block_entity(n) != NULL
) {
/* block with a jump label attached cannot be removed. */
set_Block_removable(n, false);
}