Browse Source

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

git-svn-id: trunk@21307 -
florian 13 năm trước cách đây
mục cha
commit
2560266e5d
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      compiler/arm/aasmcpu.pas

+ 2 - 2
compiler/arm/aasmcpu.pas

@@ -945,8 +945,8 @@ implementation
               begin
                 penalty:=1;
                 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);
                 while assigned(hp) and (hp.typ=ait_const) do
                   begin