소스 검색

* ti8086vecnode.update_reference_reg_mul: remove the segment before calling
base, because base may in some cases call cg.a_loadaddr_ref_reg, which will
overwrite the next register, if the source reference contains a segment

git-svn-id: trunk@27713 -

nickysn 11 년 전
부모
커밋
38aec68d6f
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      compiler/i8086/n8086mem.pas

+ 1 - 0
compiler/i8086/n8086mem.pas

@@ -175,6 +175,7 @@ implementation
         saveseg: TRegister;
       begin
         saveseg:=location.reference.segment;
+        location.reference.segment:=NR_NO;
         inherited update_reference_reg_mul(maybe_const_reg,l);
         location.reference.segment:=saveseg;
       end;