Prechádzať zdrojové kódy

* 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 rokov pred
rodič
commit
38aec68d6f
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  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;