File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -222,14 +222,11 @@ optionalt<codet> cpp_typecheckt::cpp_constructor(
222
222
// there is always a constructor for non-PODs
223
223
assert (constructor_name!=" " );
224
224
225
- side_effect_expr_function_callt function_call;
226
- function_call.add_source_location ()=source_location;
227
- function_call.function () =
228
- cpp_namet (constructor_name, source_location).as_expr ();
229
- function_call.arguments ().reserve (operands_tc.size ());
225
+ side_effect_expr_function_callt function_call (
226
+ cpp_namet (constructor_name, source_location).as_expr (),
227
+ operands_tc);
230
228
231
- for (auto &op : operands_tc)
232
- function_call.op1 ().copy_to_operands (op);
229
+ function_call.add_source_location ()=source_location;
233
230
234
231
typecheck_side_effect_function_call (function_call);
235
232
assert (function_call.get (ID_statement)==ID_temporary_object);
You can’t perform that action at this time.
0 commit comments