X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Freturn.c;h=ce012ee23fd0552b00916eb67e96ae5bd0f5f20b;hb=8c9921a1fc166552f6e416434fd8394a4fc210a3;hp=76b1bdb493496d88d59a1d9bd637332c7d800835;hpb=f8cc15664f571aa7ef89d6f6bc8d5bd2b8ca7d53;p=libfirm diff --git a/ir/opt/return.c b/ir/opt/return.c index 76b1bdb49..ce012ee23 100644 --- a/ir/opt/return.c +++ b/ir/opt/return.c @@ -187,7 +187,7 @@ static bool can_move_ret(ir_node *ret) /* check, that predecessors are Jmps */ n = get_Block_n_cfgpreds(retbl); /* we cannot move above a labeled block, as this might kill the block */ - if (n <= 1 || has_Block_entity(retbl)) + if (n <= 1 || get_Block_entity(retbl) != NULL) return false; for (i = 0; i < n; ++i) { ir_node *pred = get_Block_cfgpred(retbl, i);