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:
Jonas Maebe 2022-07-26 21:50:03 +02:00
parent 0e9ea11859
commit 5012e45d04

View File

@ -889,6 +889,8 @@ implementation
begin
if not(tsym(p).typ in [localvarsym,paravarsym]) then
exit;
if sp_internal in tsym(p).symoptions then
exit;
maybe_trash_variable(stat^,tabstractnormalvarsym(p),cloadnode.create(tsym(p),tsym(p).owner));
end;