summaryrefslogtreecommitdiffhomepage
path: root/ir/ana
diff options
context:
space:
mode:
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>2016-05-18 10:58:42 +0200
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2016-05-18 13:12:41 +0200
commit30e30489b1b457ca270235161edadd6bc147e2d0 (patch)
tree1e21e2326adb354fd8b3281703aff02a82c6251c /ir/ana
parent6b0d176774d5515dd50c1950fc77394797450084 (diff)
Use assertion instead of "this should not happen" comment
Diffstat (limited to 'ir/ana')
-rw-r--r--ir/ana/analyze_irg_args.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/ir/ana/analyze_irg_args.c b/ir/ana/analyze_irg_args.c
index 8815569..16381da 100644
--- a/ir/ana/analyze_irg_args.c
+++ b/ir/ana/analyze_irg_args.c
@@ -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);
}
}
}