X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fcfopt.c;h=4e5cc69058ea8e84c411a09031a9adbdb98638b7;hb=151f1b110fe2c1ead4ae8dd66a2521f35c324946;hp=972703d3ae18ba03ac3a56df229d9f70ddb9bcb8;hpb=63f5de37e38e400b018108a3dd15dd079f35ec5d;p=libfirm diff --git a/ir/opt/cfopt.c b/ir/opt/cfopt.c index 972703d3a..4e5cc6905 100644 --- a/ir/opt/cfopt.c +++ b/ir/opt/cfopt.c @@ -625,7 +625,7 @@ static int handle_switch_cond(ir_node *cond) { if (proj2 == NULL) { /* this Cond has only one Proj: must be the defProj */ - assert(get_Cond_defaultProj(cond) == get_Proj_proj(proj1)); + assert(get_Cond_default_proj(cond) == get_Proj_proj(proj1)); /* convert it into a Jmp */ jmp = new_r_Jmp(current_ir_graph, blk); exchange(proj1, jmp); @@ -638,7 +638,7 @@ static int handle_switch_cond(ir_node *cond) { if (tv != tarval_bad) { /* we have a constant switch */ long num = get_tarval_long(tv); - long def_num = get_Cond_defaultProj(cond); + long def_num = get_Cond_default_proj(cond); if (def_num == get_Proj_proj(proj1)) { /* first one is the defProj */