소스 검색

Avoid internalerror in RemoveCurrentP for arm compiler

git-svn-id: trunk@47690 -
pierre 4 년 전
부모
커밋
19d5e43615
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/arm/aoptcpu.pas

+ 1 - 1
compiler/arm/aoptcpu.pas

@@ -1545,7 +1545,7 @@ Implementation
                       asml.InsertAfter(dealloc,hpfar1);
                       asml.InsertAfter(dealloc,hpfar1);
                     end;
                     end;
 
 
-                  if not Assigned(hp1) then
+                  if (not Assigned(hp1)) or (p=hp1) then
                     GetNextInstruction(p, hp1);
                     GetNextInstruction(p, hp1);
 
 
                   RemoveCurrentP(p, hp1);
                   RemoveCurrentP(p, hp1);