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,14 +378,8 @@ static void analyze_method_params_weight(ir_entity *ent)
unsigned get_method_param_weight(ir_entity *ent, size_t pos)
{
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];
else
return null_weight;
}
analyze_method_params_weight(ent);
if (!ent->attr.mtd_attr.param_weight)
analyze_method_params_weight(ent);
if (pos < ARR_LEN(ent->attr.mtd_attr.param_weight))
return ent->attr.mtd_attr.param_weight[pos];
......
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