Explorar el Código

Set unititialized local boolean variables to false to avoid random behavior

Pierre Muller hace 1 día
padre
commit
e1d6a355b5
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      compiler/x86/aoptx86.pas

+ 2 - 0
compiler/x86/aoptx86.pas

@@ -16157,6 +16157,7 @@ unit aoptx86;
 
       begin
         Result := False;
+        DoAddMov2Lea:=false;
 
         if (taicpu(p).opsize in [S_L{$ifdef x86_64}, S_Q{$endif}]) and
           (taicpu(p).oper[1]^.typ = top_reg) then
@@ -16501,6 +16502,7 @@ unit aoptx86;
 
       begin
         Result := False;
+        DoSubMov2Lea:=false;
 
         if (taicpu(p).opsize in [S_L{$ifdef x86_64}, S_Q{$endif}]) and
           MatchOpType(taicpu(p),top_const,top_reg) then