assert(succ_block == NULL);
succ_block = get_edge_src_irn(edge);
- if (has_Block_entity(succ_block) && has_Block_entity(block)) {
+ if (get_Block_entity(succ_block) != NULL
+ && get_Block_entity(block) != NULL) {
/*
* Currently we can add only one label for a block.
* Therefore we cannot combine them if both block already have one.
set_irn_n(succ_block, pos, pred);
}
- if (has_Block_entity(block)) {
+ if (get_Block_entity(block) != NULL) {
/* move the label to the successor block */
ir_entity *entity = get_Block_entity(block);
set_Block_entity(succ_block, entity);