mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 13:29:27 +02:00
* calculate complexity of exit nodes correctly
git-svn-id: trunk@25245 -
This commit is contained in:
parent
0a22199738
commit
5d4a094799
@ -673,6 +673,16 @@ implementation
|
||||
{$endif ARM}
|
||||
exit;
|
||||
end;
|
||||
exitn:
|
||||
begin
|
||||
inc(result,2);
|
||||
if (result >= NODE_COMPLEXITY_INF) then
|
||||
begin
|
||||
result := NODE_COMPLEXITY_INF;
|
||||
exit;
|
||||
end;
|
||||
p:=texitnode(p).left;
|
||||
end;
|
||||
tempcreaten,
|
||||
tempdeleten,
|
||||
pointerconstn,
|
||||
|
Loading…
Reference in New Issue
Block a user