mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-06 11:50:19 +02:00
compiler: mark 'var' and 'out' arguments as they are passed by reference for dispatch invoke
git-svn-id: trunk@14781 -
This commit is contained in:
parent
f0f7837fdd
commit
7aede2018f
@ -410,7 +410,7 @@ implementation
|
||||
internalerror(200611041);
|
||||
end;
|
||||
|
||||
dispatchbyref:=para.left.resultdef.typ in [variantdef];
|
||||
dispatchbyref:=(para.parasym.varspez in [vs_var,vs_out]) or (para.left.resultdef.typ in [variantdef]);
|
||||
|
||||
{ assign the argument/parameter to the temporary location }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user