Преглед на файлове

* use expectloc instead of location.loc in pass1

git-svn-id: trunk@4594 -
Jonas Maebe преди 19 години
родител
ревизия
b9f32e1828
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      compiler/x86/nx86set.pas

+ 1 - 1
compiler/x86/nx86set.pas

@@ -67,7 +67,7 @@ implementation
          left_right_max;
          { a smallset needs maybe an misc. register }
          if (left.nodetype<>ordconstn) and
-            not(right.location.loc in [LOC_CREGISTER,LOC_REGISTER]) and
+            not(right.expectloc in [LOC_CREGISTER,LOC_REGISTER]) and
             (right.registersint<1) then
            inc(registersint);
       end;