Commit dc667d91 authored by Michael Beck's avatar Michael Beck
Browse files

handle unknown_entity

[r6903]
parent c72b141a
......@@ -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;
}
......
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