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

+ stop with an internal error if GetNextReg is called with a non-imaginary register

git-svn-id: trunk@24493 -
nickysn преди 12 години
родител
ревизия
e2cd2813ce
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      compiler/x86/cpubase.pas

+ 2 - 0
compiler/x86/cpubase.pas

@@ -556,6 +556,8 @@ implementation
 {$ifdef i8086}
 {$ifdef i8086}
     function GetNextReg(const r: TRegister): TRegister;
     function GetNextReg(const r: TRegister): TRegister;
       begin
       begin
+        if getsupreg(r)<first_int_imreg then
+          internalerror(2013051401);
         result:=TRegister(longint(r)+1);
         result:=TRegister(longint(r)+1);
       end;
       end;
 {$endif i8086}
 {$endif i8086}