Commit 30e30489 authored by yb9976's avatar yb9976
Browse files

Use assertion instead of "this should not happen" comment

parent 6b0d1767
......@@ -301,13 +301,9 @@ static unsigned calc_method_param_weight(ir_node *arg)
if (pred == arg) {
/* look for Proj(j) */
foreach_irn_out_r(succ, k, succ_succ) {
if (is_Proj(succ_succ)) {
if (get_Proj_num(succ_succ) == j) {
/* found */
weight += calc_method_param_weight(succ_succ);
}
} else {
/* this should NOT happen */
if (get_Proj_num(succ_succ) == j) {
/* found */
weight += calc_method_param_weight(succ_succ);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment