Fix bug introduced in commit #47709, by only calling node_complexity if first pass was already done (bug report 38183)

git-svn-id: trunk@47720 -
This commit is contained in:
pierre 2020-12-08 11:28:50 +00:00
parent 9ac84262f6
commit 348be7657d

View File

@ -896,7 +896,9 @@ implementation
first:=false;
write(t, i);
end;
write(t,'], cmplx = ',node_complexity(self));
write(t,']');
if (nf_pass1_done in flags) then
write(t,', cmplx = ',node_complexity(self));
end;
@ -942,7 +944,8 @@ implementation
Write(T, ',', i)
end;
write(t,'" complexity="',node_complexity(self),'"');
if (nf_pass1_done in flags) then
write(t,'" complexity="',node_complexity(self),'"');
end;
procedure tnode.XMLPrintNodeData(var T: Text);