summaryrefslogtreecommitdiffstats
path: root/Python/assemble.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/assemble.c')
-rw-r--r--Python/assemble.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/assemble.c b/Python/assemble.c
index 569454e..09db2fa 100644
--- a/Python/assemble.c
+++ b/Python/assemble.c
@@ -736,6 +736,9 @@ _PyAssemble_MakeCodeObject(_PyCompile_CodeUnitMetadata *umd, PyObject *const_cac
int nlocalsplus, int code_flags, PyObject *filename)
{
+ if (_PyCompile_InstructionSequence_ApplyLabelMap(instrs) < 0) {
+ return NULL;
+ }
if (resolve_unconditional_jumps(instrs) < 0) {
return NULL;
}