Commit 4dc1b2e8 authored by Jeremy Hylton's avatar Jeremy Hylton

Make sure the JUMP_ABSOLUTE and POP_BLOCK at the end of a for loop are

contiguous.
parent cec15e63
......@@ -363,7 +363,7 @@ class CodeGenerator:
self.visit(node.assign)
self.visit(node.body)
self.emit('JUMP_ABSOLUTE', start)
self.startBlock(anchor)
self.nextBlock(anchor)
self.emit('POP_BLOCK')
self.loops.pop()
if node.else_:
......
......@@ -363,7 +363,7 @@ class CodeGenerator:
self.visit(node.assign)
self.visit(node.body)
self.emit('JUMP_ABSOLUTE', start)
self.startBlock(anchor)
self.nextBlock(anchor)
self.emit('POP_BLOCK')
self.loops.pop()
if node.else_:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment