From dc667d9146db23cfeebd4f3284d06d3208129dc9 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Sun, 13 Nov 2005 15:18:48 +0000 Subject: [PATCH] handle unknown_entity [r6903] --- ir/opt/funccall.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; } -- 2.20.1