Browse Source

+ fixed a bug in the previous commit, when adding two references, the first
containing a base register, the second - an index register with a scalefactor.
The scalefactor was ignored in this case.

git-svn-id: trunk@38354 -

nickysn 7 năm trước cách đây
mục cha
commit
f623038da6
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      compiler/x86/rax86int.pas

+ 1 - 0
compiler/x86/rax86int.pas

@@ -814,6 +814,7 @@ Unit Rax86int;
           if dest.opr.ref.index=NR_NO then
             begin
               dest.opr.ref.index:=reg;
+              dest.opr.ref.scalefactor:=scalefactor;
               exit;
             end;
           if dest.opr.ref.index=reg then