From: Matthias Braun Date: Tue, 19 Jun 2007 09:15:06 +0000 (+0000) Subject: fixed broken mark_private_methods X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=8c413e48919baf494cd98c7f08bf085268d15698;p=libfirm fixed broken mark_private_methods [r14644] --- diff --git a/ir/ana/irmemory.c b/ir/ana/irmemory.c index 7ff08cb5d..4e9964c18 100644 --- a/ir/ana/irmemory.c +++ b/ir/ana/irmemory.c @@ -1001,11 +1001,9 @@ static void update_calls(ir_node *call, void *env) { if (is_SymConst(ptr)) { ir_entity *ent = get_SymConst_entity(ptr); - ir_type *mtp = get_entity_type(ent); ir_type *ctp = get_Call_type(call); - unsigned cc = get_method_calling_convention(mtp); - if ((get_method_additional_properties(ctp) & mtp_property_private) == 0) { + if (get_method_additional_properties(ctp) & mtp_property_private) { set_method_additional_property(ctp, mtp_property_private); DB((dbgcall, LEVEL_1, "changed call to private method %+F\n", ent)); }