Add another guard on a test

This commit is contained in:
rocky
2018-02-25 08:59:12 -05:00
parent ab1c2ec5bb
commit 6e2ca8f53d

View File

@@ -227,7 +227,8 @@ class Scanner3(Scanner):
if op == self.opc.EXTENDED_ARG:
# FIXME: The EXTENDED_ARG is used to signal annotation
# parameters
if self.insts[i+1].opcode != self.opc.MAKE_FUNCTION:
if (i+1 < n and
self.insts[i+1].opcode != self.opc.MAKE_FUNCTION):
continue
if inst.offset in jump_targets: