浏览代码

* skip comments properly when searching for places for constant pool distances

git-svn-id: trunk@21307 -
florian 13 年之前
父节点
当前提交
2560266e5d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      compiler/arm/aasmcpu.pas

+ 2 - 2
compiler/arm/aasmcpu.pas

@@ -945,8 +945,8 @@ implementation
               begin
               begin
                 penalty:=1;
                 penalty:=1;
                 hp:=tai(hp.next);
                 hp:=tai(hp.next);
-                { skip register allocations inserted by the optimizer }
-                while assigned(hp) and (hp.typ=ait_regalloc) do
+                { skip register allocations and comments inserted by the optimizer }
+                while assigned(hp) and (hp.typ in [ait_comment,ait_regalloc]) do
                   hp:=tai(hp.next);
                   hp:=tai(hp.next);
                 while assigned(hp) and (hp.typ=ait_const) do
                 while assigned(hp) and (hp.typ=ait_const) do
                   begin
                   begin