* When optimization is off always load unused parentfp to a local location to be debugger friendly.

git-svn-id: trunk@46514 -
This commit is contained in:
yury 2020-08-20 16:59:10 +00:00
parent ccc26ad34c
commit 75e5afd45b

View File

@ -865,7 +865,8 @@ implementation
end
{ Unused parameters need to be kept in the original location
to prevent allocation of registers/resources for them. }
else if not tparavarsym(vs).is_used then
else if not tparavarsym(vs).is_used and
(cs_opt_unused_para in current_settings.optimizerswitches) then
begin
tparavarsym(vs).paraloc[calleeside].get_location(vs.initialloc);
end