Pop current_block_stack after for_variable_declaration and foreach.
This commit is contained in:
parent
991d7d7582
commit
f827e4f748
2
parse.y
2
parse.y
|
|
@ -1426,6 +1426,7 @@ loop_statement /* IEEE1800-2005: A.6.8 */
|
||||||
vector<Statement*>tmp_for_list (1);
|
vector<Statement*>tmp_for_list (1);
|
||||||
tmp_for_list[0] = tmp_for;
|
tmp_for_list[0] = tmp_for;
|
||||||
PBlock*tmp_blk = current_block_stack.top();
|
PBlock*tmp_blk = current_block_stack.top();
|
||||||
|
current_block_stack.pop();
|
||||||
tmp_blk->set_statement(tmp_for_list);
|
tmp_blk->set_statement(tmp_for_list);
|
||||||
$$ = tmp_blk;
|
$$ = tmp_blk;
|
||||||
delete[]$4;
|
delete[]$4;
|
||||||
|
|
@ -1476,6 +1477,7 @@ loop_statement /* IEEE1800-2005: A.6.8 */
|
||||||
vector<Statement*>tmp_for_list(1);
|
vector<Statement*>tmp_for_list(1);
|
||||||
tmp_for_list[0] = tmp_for;
|
tmp_for_list[0] = tmp_for;
|
||||||
PBlock*tmp_blk = current_block_stack.top();
|
PBlock*tmp_blk = current_block_stack.top();
|
||||||
|
current_block_stack.pop();
|
||||||
tmp_blk->set_statement(tmp_for_list);
|
tmp_blk->set_statement(tmp_for_list);
|
||||||
$$ = tmp_blk;
|
$$ = tmp_blk;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue