Преглед на файлове

Increase reference count of jump label, fixes #39784

ccrause преди 3 години
родител
ревизия
7822a90e20
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      compiler/avr/aasmcpu.pas

+ 1 - 0
compiler/avr/aasmcpu.pas

@@ -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)