* renamed sum -> defsum to avoid confusion with usesum

git-svn-id: trunk@43905 -
This commit is contained in:
florian 2020-01-10 21:34:30 +00:00
parent b5659df425
commit 30e186be78

View File

@ -343,12 +343,12 @@ unit optutils;
end; end;
var var
sum : TDFASet; defsum : TDFASet;
function adddef(var n: tnode; arg: pointer): foreachnoderesult; function adddef(var n: tnode; arg: pointer): foreachnoderesult;
begin begin
if assigned(n.optinfo) then if assigned(n.optinfo) then
DFASetIncludeSet(sum,n.optinfo^.def); DFASetIncludeSet(defsum,n.optinfo^.def);
Result:=fen_false; Result:=fen_false;
end; end;
@ -358,9 +358,9 @@ unit optutils;
p.allocoptinfo; p.allocoptinfo;
if not assigned(p.optinfo^.defsum) then if not assigned(p.optinfo^.defsum) then
begin begin
sum:=nil; defsum:=nil;
foreachnodestatic(pm_postprocess,p,@adddef,nil); foreachnodestatic(pm_postprocess,p,@adddef,nil);
p.optinfo^.defsum:=sum; p.optinfo^.defsum:=defsum;
end; end;
end; end;