mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 15:29:13 +02:00
* also handle statement nodes in has_no_code()
git-svn-id: trunk@14907 -
This commit is contained in:
parent
a37850742c
commit
efcc6f6440
@ -1114,6 +1114,14 @@ implementation
|
||||
result:=has_no_code(tblocknode(n).left);
|
||||
exit;
|
||||
end;
|
||||
statementn:
|
||||
begin
|
||||
repeat
|
||||
result:=has_no_code(tstatementnode(n).left);
|
||||
n:=tstatementnode(n).right;
|
||||
until not(result) or not assigned(n);
|
||||
exit;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user