Quellcode durchsuchen

Set unititialized local boolean variables to false to avoid random behavior

Pierre Muller vor 1 Tag
Ursprung
Commit
e1d6a355b5
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  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