From: Michael Beck Date: Sun, 13 Nov 2005 15:18:48 +0000 (+0000) Subject: handle unknown_entity X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=dc667d9146db23cfeebd4f3284d06d3208129dc9;p=libfirm handle unknown_entity [r6903] --- diff --git a/ir/opt/funccall.c b/ir/opt/funccall.c index 1002450f2..8f7af6f8e 100644 --- a/ir/opt/funccall.c +++ b/ir/opt/funccall.c @@ -66,8 +66,12 @@ static void rem_mem_from_const_fkt_calls(ir_node *node, void *env) return; for (i = 0; i < n_callees; ++i) { ent = get_Call_callee(call, i); + if (ent == unknown_entity) { + /* we don't know which entity is called here */ + return; + } if ((get_entity_additional_properties(ent) & mtp_property_const) == 0) - return; + return; } ++ctx->n_calls_removed_Sel; }