diff --git a/src/libAtomVM/opcodesswitch.h b/src/libAtomVM/opcodesswitch.h index d2545762e..c869fb4da 100644 --- a/src/libAtomVM/opcodesswitch.h +++ b/src/libAtomVM/opcodesswitch.h @@ -1590,9 +1590,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) @@ -1600,8 +1597,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; }