Browse Source

* bugfix to FindRegAlloc function (caused wrong regalloc info in
some cases) (merged from fixes branch)

Jonas Maebe 25 years ago
parent
commit
49b63874c2
1 changed files with 15 additions and 10 deletions
  1. 15 10
      compiler/daopt386.pas

+ 15 - 10
compiler/daopt386.pas

@@ -345,16 +345,17 @@ Begin
            ((StartPai^.typ = ait_label) and
            ((StartPai^.typ = ait_label) and
             labelCanBeSkipped(pai_label(startPai)))) Do
             labelCanBeSkipped(pai_label(startPai)))) Do
       StartPai := Pai(StartPai^.Next);
       StartPai := Pai(StartPai^.Next);
-    If Assigned(StartPai) And
-       (StartPai^.typ = ait_regAlloc) and (PairegAlloc(StartPai)^.allocation = alloc) Then
-      Begin
-        if PairegAlloc(StartPai)^.Reg = Reg then
-         begin
-           FindRegAlloc:=true;
-           break;
-         end;
+    If Assigned(StartPai) and
+       (StartPai^.typ = ait_regAlloc) then
+      begin
+        if (PairegAlloc(StartPai)^.allocation = alloc) and
+           (PairegAlloc(StartPai)^.Reg = Reg) then
+          begin
+            FindRegAlloc:=true;
+            break;
+          end;
         StartPai := Pai(StartPai^.Next);
         StartPai := Pai(StartPai^.Next);
-      End
+      end
     else
     else
       break;
       break;
   Until false;
   Until false;
@@ -2332,7 +2333,11 @@ End.
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.7  2000-08-23 12:55:10  jonas
+  Revision 1.8  2000-08-25 19:39:18  jonas
+    * bugfix to FindRegAlloc function (caused wrong regalloc info in
+      some cases) (merged from fixes branch)
+
+  Revision 1.7  2000/08/23 12:55:10  jonas
     * fix for web bug 1112 and a bit of clean up in csopt386 (merged from
     * fix for web bug 1112 and a bit of clean up in csopt386 (merged from
       fixes branch)
       fixes branch)