summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestack.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2013-10-31 17:42:20 +0100
committerMatthias Braun <matze@braunis.de>2013-10-31 17:43:32 +0100
commitb2409edadff60f79a49c0ba2decf54ba55ce2277 (patch)
treee14842aae225efd824ea30dee27786e91402df15 /ir/be/bestack.c
parentc9f090850e7835d45cb1633c781878446443a211 (diff)
further cleanup in get/set_entity_irg/additional_properties
- Only allow get_entity_irg()/set_entity_irg() for method entities now. - Allow setting/getting of additional properties for method and alias entities. - Add some missing is_method_entity() checks in cgana.
Diffstat (limited to 'ir/be/bestack.c')
-rw-r--r--ir/be/bestack.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ir/be/bestack.c b/ir/be/bestack.c
index 7f9dc76..f50c293 100644
--- a/ir/be/bestack.c
+++ b/ir/be/bestack.c
@@ -234,11 +234,11 @@ void be_abi_fix_stack_bias(ir_graph *irg)
frame_tp = get_irg_frame_type(irg);
for (i = get_class_n_members(frame_tp) - 1; i >= 0; --i) {
ir_entity *ent = get_class_member(frame_tp, i);
- ir_graph *irg = get_entity_irg(ent);
-
- if (irg != NULL) {
+ if (!is_method_entity(ent))
+ continue;
+ ir_graph *irg = get_entity_irg(ent);
+ if (irg != NULL)
irg_walk_graph(irg, NULL, lower_outer_frame_sels, NULL);
- }
}
}