mirror of https://github.com/python/cpython
Make sure the JUMP_ABSOLUTE and POP_BLOCK at the end of a for loop are
contiguous.
This commit is contained in:
parent
cbfc855f57
commit
2ac9c3eec5
|
@ -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_:
|
||||
|
|
Loading…
Reference in New Issue