File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ void remove_function_pointerst::remove_function_pointer(
281
281
const code_function_callt &code=
282
282
to_code_function_call (target->code );
283
283
284
- const exprt &function= code.function ();
284
+ const auto &function = to_dereference_expr ( code.function () );
285
285
286
286
// this better have the right type
287
287
code_typet call_type=to_code_type (function.type ());
@@ -296,12 +296,9 @@ void remove_function_pointerst::remove_function_pointer(
296
296
code_typet::parametert (it->type ()));
297
297
}
298
298
299
- assert (function.id ()==ID_dereference);
300
- assert (function.operands ().size ()==1 );
301
-
302
299
bool found_functions;
303
300
304
- const exprt &pointer= function.op0 ();
301
+ const exprt &pointer = function.pointer ();
305
302
remove_const_function_pointerst::functionst functions;
306
303
does_remove_constt const_removal_check (goto_program, ns);
307
304
const auto does_remove_const = const_removal_check ();
You can’t perform that action at this time.
0 commit comments