Commit 2a2aad1a authored by Matthias Braun's avatar Matthias Braun
Browse files

fix for my last commit

[r27879]
parent 24be6684
...@@ -502,11 +502,11 @@ void analyze_irg_args_weight(ir_graph *irg) ...@@ -502,11 +502,11 @@ void analyze_irg_args_weight(ir_graph *irg)
return; return;
assert(is_method_entity(entity)); assert(is_method_entity(entity));
if (ent->attr.mtd_attr.param_weight != NULL) if (entity->attr.mtd_attr.param_weight != NULL)
return; return;
ir_reserve_resources(irg, IR_RESOURCE_IRN_VISITED); ir_reserve_resources(irg, IR_RESOURCE_IRN_VISITED);
inc_irg_visited(irg); inc_irg_visited(irg);
analyze_method_params_weight(ent); analyze_method_params_weight(entity);
ir_free_resources(irg, IR_RESOURCE_IRN_VISITED); ir_free_resources(irg, IR_RESOURCE_IRN_VISITED);
} }
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