mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 15:09:20 +02:00
* just copy value parameters to a temp. when inlining instead of
using (@...)^ constructs, resolves #39590
This commit is contained in:
parent
696b7b6f68
commit
d198fc46cb
@ -4904,6 +4904,14 @@ implementation
|
||||
not valid_for_addr(para.left,false)) then
|
||||
exit(true);
|
||||
|
||||
{ insert value parameters directly if they are complex instead
|
||||
of inserting a reference to the temp.
|
||||
- this keeps the node tree simpler
|
||||
- alignment is propagated }
|
||||
if (para.parasym.varspez=vs_value) and
|
||||
complexpara then
|
||||
exit(true);
|
||||
|
||||
result:=false;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user