File tree 2 files changed +7
-19
lines changed
2 files changed +7
-19
lines changed Original file line number Diff line number Diff line change @@ -900,11 +900,7 @@ void goto_convertt::do_function_call_symbol(
900
900
if (lhs.is_nil ())
901
901
return ;
902
902
903
- function_application_exprt rhs;
904
- rhs.type ()=lhs.type ();
905
- rhs.add_source_location ()=function.source_location ();
906
- rhs.function ()=function;
907
- rhs.arguments ()=arguments;
903
+ function_application_exprt rhs (function, arguments, lhs.type ());
908
904
909
905
code_assignt assignment (lhs, rhs);
910
906
assignment.add_source_location ()=function.source_location ();
Original file line number Diff line number Diff line change @@ -4333,22 +4333,16 @@ class null_pointer_exprt:public constant_exprt
4333
4333
class function_application_exprt :public binary_exprt
4334
4334
{
4335
4335
public:
4336
- function_application_exprt ():binary_exprt(ID_function_application)
4337
- {
4338
- op0 ()=symbol_exprt ();
4339
- }
4340
-
4341
- explicit function_application_exprt (const typet &_type):
4342
- binary_exprt(ID_function_application, _type)
4343
- {
4344
- op0 ()=symbol_exprt ();
4345
- }
4336
+ using argumentst = exprt::operandst;
4346
4337
4347
4338
function_application_exprt (
4348
- const symbol_exprt &_function, const typet &_type):
4349
- function_application_exprt (_type) // NOLINT(runtime/explicit)
4339
+ const symbol_exprt &_function,
4340
+ const argumentst &_arguments,
4341
+ const typet &_type)
4342
+ : binary_exprt(ID_function_application, _type) // NOLINT(runtime/explicit)
4350
4343
{
4351
4344
function ()=_function;
4345
+ arguments () = _arguments;
4352
4346
}
4353
4347
4354
4348
symbol_exprt &function ()
@@ -4361,8 +4355,6 @@ class function_application_exprt:public binary_exprt
4361
4355
return static_cast <const symbol_exprt &>(op0 ());
4362
4356
}
4363
4357
4364
- typedef exprt::operandst argumentst;
4365
-
4366
4358
argumentst &arguments ()
4367
4359
{
4368
4360
return op1 ().operands ();
You can’t perform that action at this time.
0 commit comments