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;
}
int change;
unsigned num_pure = 0;
- if (! get_opt_real_func_call())
+ if (! get_opt_real_function_call())
return;
/* first step: detect, which functions are const, i.e. do NOT touch any memory */