Fix for try..else..finally blocks.

* with blocks having a nested if..else do not work anymore.
This commit is contained in:
Kunal Parmar
2012-06-06 23:00:03 -07:00
parent cc9bdfa085
commit c38193faa8

View File

@@ -70,7 +70,8 @@ PycRef<ASTNode> BuildFromCode(PycRef<PycCode> code, PycModule* mod)
&& opcode != Pyc::POP_JUMP_IF_FALSE_A
&& opcode != Pyc::JUMP_IF_TRUE_A
&& opcode != Pyc::JUMP_IF_TRUE_OR_POP_A
&& opcode != Pyc::POP_JUMP_IF_TRUE_A) {
&& opcode != Pyc::POP_JUMP_IF_TRUE_A
&& opcode != Pyc::POP_BLOCK) {
else_pop = false;
PycRef<ASTBlock> prev = curblock;