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:
paul 2010-01-23 19:01:30 +00:00
parent f0f7837fdd
commit 7aede2018f

View File

@ -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 }