Explorar o código

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

git-svn-id: trunk@24493 -
nickysn %!s(int64=12) %!d(string=hai) anos
pai
achega
e2cd2813ce
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      compiler/x86/cpubase.pas

+ 2 - 0
compiler/x86/cpubase.pas

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