Support while … else
This commit is contained in:
@ -1277,6 +1277,13 @@ namespace elna::gcc
|
||||
{
|
||||
make_if_branch(*branch, goto_check);
|
||||
}
|
||||
if (statement->alternative != nullptr)
|
||||
{
|
||||
enter_scope();
|
||||
visit_statements(*statement->alternative);
|
||||
tree mapping = leave_scope();
|
||||
append_statement(mapping);
|
||||
}
|
||||
append_statement(branch_end_expression);
|
||||
this->current_expression = NULL_TREE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user