Skip to content

Commit 10d8b2f

Browse files
Daniel Kroeningtautschnig
authored andcommitted
add a precondition to remove_function_pointerst::remove_function_pointer
1 parent b2a5bf3 commit 10d8b2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/goto-programs/remove_function_pointers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ void remove_function_pointerst::remove_function_pointer(
378378
const code_function_callt &code = to_code_function_call(target->code);
379379

380380
const exprt &function = code.function();
381-
const exprt &pointer = function.op0();
381+
const exprt &pointer = to_dereference_expr(function).pointer();
382382

383383
// the final target is a skip
384384
goto_programt final_skip;

0 commit comments

Comments
 (0)