Force the execution of expression statements

This commit is contained in:
2025-01-21 20:18:27 +01:00
parent e15f6924b1
commit 156506e8fa
3 changed files with 54 additions and 58 deletions

View File

@ -852,6 +852,7 @@ namespace gcc
void generic_visitor::visit(source::expression_statement *statement)
{
statement->body().accept(this);
append_to_statement_list(this->current_expression, &this->current_statements);
}
void generic_visitor::visit(source::return_statement *statement)