Increase reference count of jump label, fixes #39784

This commit is contained in:
ccrause 2022-06-17 22:56:10 +02:00 committed by FPK
parent 6fb16ceec6
commit 7822a90e20

View File

@ -486,6 +486,7 @@ implementation
else
begin
current_asmdata.getjumplabel(l);
l.increfs;
list.insertafter(tai_label.create(l),curtai);
if CPUAVR_HAS_JMP_CALL in cpu_capabilities[current_settings.cputype] then
list.insertafter(taicpu.op_sym(A_JMP,taicpu(curtai).oper[0]^.ref^.symbol),curtai)