File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,9 @@ void goto_convertt::do_printf(
221
221
else
222
222
{
223
223
printf_code.id (ID_code);
224
- printf_code.type ()=typet (ID_code);
224
+ printf_code.type () = code_typet (
225
+ code_typet::parameterst (to_code_type (function.type ()).parameters ()),
226
+ empty_typet ());
225
227
copy (to_code (printf_code), OTHER, dest);
226
228
}
227
229
}
Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ void jsil_typecheckt::typecheck_expr_index(exprt &expr)
348
348
349
349
// special case for function identifiers
350
350
if (expr.op1 ().id ()==" fid" || expr.op1 ().id ()==" constructid" )
351
- expr.type ()= code_typet ();
351
+ expr.type () = code_typet ({}, typet () );
352
352
else
353
353
expr.type ()=jsil_value_type ();
354
354
}
@@ -802,7 +802,7 @@ void jsil_typecheckt::typecheck_function_call(
802
802
// Should be function, declaration not found yet
803
803
symbolt new_symbol;
804
804
new_symbol.name =id;
805
- new_symbol.type = code_typet ();
805
+ new_symbol.type = code_typet ({}, typet () );
806
806
new_symbol.mode =" jsil" ;
807
807
new_symbol.is_type =false ;
808
808
new_symbol.value =exprt (" no-body-just-yet" );
You can’t perform that action at this time.
0 commit comments