浏览代码

+ 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