浏览代码

* 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;