Explorar o código

x86: fix a variable op not initialized warning. This hopefully fixes our x86 testsuite run.

git-svn-id: trunk@28496 -
Károly Balogh %!s(int64=11) %!d(string=hai) anos
pai
achega
249a60b28b
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      compiler/x86/nx86add.pas

+ 5 - 0
compiler/x86/nx86add.pas

@@ -613,6 +613,8 @@ unit nx86add;
         pass_left_right;
 
         cmpop:=false;
+        op:=A_NOP;
+
         mmxbase:=mmx_type(left.resultdef);
         location_reset(location,LOC_MMXREGISTER,def_cgsize(resultdef));
         case nodetype of
@@ -689,6 +691,9 @@ unit nx86add;
             internalerror(2003042214);
         end;
 
+        if op = A_NOP then
+          internalerror(201408201);
+
         { left and right no register?  }
         { then one must be demanded    }
         if (left.location.loc<>LOC_MMXREGISTER) then