diff --git a/src/libAtomVM/opcodesswitch.h b/src/libAtomVM/opcodesswitch.h index 79c92d959..d7469d1e6 100644 --- a/src/libAtomVM/opcodesswitch.h +++ b/src/libAtomVM/opcodesswitch.h @@ -1594,9 +1594,6 @@ HOT_FUNC int scheduler_entry_point(GlobalContext *glb) switch (*pc++) { case OP_LABEL: { - #ifdef IMPL_CODE_LOADER - const uint8_t* saved_pc = pc - 1; - #endif uint32_t label; DECODE_LITERAL(label, pc) @@ -1604,8 +1601,8 @@ HOT_FUNC int scheduler_entry_point(GlobalContext *glb) USED_BY_TRACE(label); #ifdef IMPL_CODE_LOADER - TRACE("Mark label %i here at %" PRIuPTR "\n", label, saved_pc - code); - module_add_label(mod, label, saved_pc); + TRACE("Mark label %i here at %" PRIuPTR "\n", label, pc - code); + module_add_label(mod, label, pc); #endif break; }