浏览代码

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)