浏览代码

Set unititialized local boolean variables to false to avoid random behavior

Pierre Muller 1 天之前
父节点
当前提交
e1d6a355b5
共有 1 个文件被更改,包括 2 次插入0 次删除
  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