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

+ 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 години
родител
ревизия
f623038da6
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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