Selaa lähdekoodia

* Update instruction segment prefix when copying operands from another instruction, Mantis #18113.

git-svn-id: trunk@22067 -
sergei 13 vuotta sitten
vanhempi
commit
de34f58284
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      compiler/aasmtai.pas

+ 4 - 0
compiler/aasmtai.pas

@@ -2285,6 +2285,10 @@ implementation
                 begin
                   new(ref);
                   ref^:=o.ref^;
+{$ifdef x86}
+                  if (ref^.segment<>NR_NO) and (ref^.segment<>NR_DS) then
+                    segprefix:=ref^.segment;
+{$endif x86}
                   if assigned(add_reg_instruction_hook) then
                     begin
                       add_reg_instruction_hook(self,ref^.base);