Jelajahi Sumber

* don't ignore by accident the next instruction after a newly inserted constant pool

git-svn-id: trunk@24677 -
florian 12 tahun lalu
induk
melakukan
4056194e7c
1 mengubah file dengan 5 tambahan dan 1 penghapusan
  1. 5 1
      compiler/arm/aasmcpu.pas

+ 5 - 1
compiler/arm/aasmcpu.pas

@@ -1092,7 +1092,6 @@ implementation
                     curtai:=tai(curtai.next);
 
                 doinsert:=false;
-                hp:=tai(curtai.next);
                 current_asmdata.getjumplabel(l);
 
                 { align thumb in thumb .text section to 4 bytes }
@@ -1112,6 +1111,11 @@ implementation
                     hp2:=tai(hp2.next);
                   end;
 
+                { continue with the last inserted label because we use later
+                  on SimpleGetNextInstruction, so if we used curtai.next (which
+                  is then equal curdata.last.previous) we could over see one
+                  instruction }
+                hp:=tai(curdata.Last);
                 list.insertlistafter(curtai,curdata);
                 curtai:=hp;
               end