浏览代码

* m68k: don't attempt to copy less than 1 byte in g_concatcopy, this fixes tdfa7.pp on 68000 and removes some superfluous address processing on 68020+ in the same test

Karoly Balogh 3 年之前
父节点
当前提交
077a3f1892
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      compiler/m68k/cgcpu.pas

+ 3 - 0
compiler/m68k/cgcpu.pas

@@ -1772,6 +1772,9 @@ unit cgcpu;
          srcrefp,dstrefp : treference;
          srcref,dstref : treference;
       begin
+         if (len < 1) then
+           exit;
+
          if (len = 1) or
             ((len in [2,4]) and
              not needs_unaligned(source.alignment,lentocgsize[len]) and