Commit 9260589a authored by Raphael von der Grün's avatar Raphael von der Grün Committed by yb9976
Browse files

Remove duplicated code block

parent 0ac74914
...@@ -378,13 +378,7 @@ static void analyze_method_params_weight(ir_entity *ent) ...@@ -378,13 +378,7 @@ static void analyze_method_params_weight(ir_entity *ent)
unsigned get_method_param_weight(ir_entity *ent, size_t pos) unsigned get_method_param_weight(ir_entity *ent, size_t pos)
{ {
if (ent->attr.mtd_attr.param_weight) { if (!ent->attr.mtd_attr.param_weight)
if (pos < ARR_LEN(ent->attr.mtd_attr.param_weight))
return ent->attr.mtd_attr.param_weight[pos];
return null_weight;
analyze_method_params_weight(ent); analyze_method_params_weight(ent);
if (pos < ARR_LEN(ent->attr.mtd_attr.param_weight)) if (pos < ARR_LEN(ent->attr.mtd_attr.param_weight))
Supports Markdown
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