We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f156ef0 commit 8372862Copy full SHA for 8372862
src/goto-programs/remove_function_pointers.cpp
@@ -233,12 +233,15 @@ void remove_function_pointerst::fix_return_type(
233
code_type.return_type(), ns))
234
return;
235
236
+ const symbolt &function_symbol =
237
+ ns.lookup(to_symbol_expr(function_call.function()).get_identifier());
238
+
239
symbolt &tmp_symbol = get_fresh_aux_symbol(
240
code_type.return_type(),
241
id2string(function_call.source_location().get_function()),
242
"tmp_return_val",
243
function_call.source_location(),
- irep_idt(),
244
+ function_symbol.mode,
245
symbol_table);
246
247
symbol_exprt tmp_symbol_expr;
0 commit comments