mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 02:49:21 +02:00
variable trashing: don't trash internal syms
Since they're managed by the code generator, they should always be valid.
This commit is contained in:
parent
0e9ea11859
commit
5012e45d04
@ -889,6 +889,8 @@ implementation
|
|||||||
begin
|
begin
|
||||||
if not(tsym(p).typ in [localvarsym,paravarsym]) then
|
if not(tsym(p).typ in [localvarsym,paravarsym]) then
|
||||||
exit;
|
exit;
|
||||||
|
if sp_internal in tsym(p).symoptions then
|
||||||
|
exit;
|
||||||
maybe_trash_variable(stat^,tabstractnormalvarsym(p),cloadnode.create(tsym(p),tsym(p).owner));
|
maybe_trash_variable(stat^,tabstractnormalvarsym(p),cloadnode.create(tsym(p),tsym(p).owner));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user