mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 05:11:38 +02:00
* remove check for out/var parameters with LOC_CREFERENCE, we generate valid
code. The checking if the code is allowed is already done by valid_for_assign() git-svn-id: trunk@3262 -
This commit is contained in:
parent
b8afac6013
commit
fe4ab79cd9
@ -440,16 +440,6 @@ implementation
|
||||
end
|
||||
else
|
||||
begin
|
||||
{ Check for passing a constant to var,out parameter }
|
||||
if (parasym.varspez in [vs_var,vs_out]) and
|
||||
(left.location.loc<>LOC_REFERENCE) then
|
||||
begin
|
||||
{ passing self to a var parameter is allowed in
|
||||
TP and delphi }
|
||||
if not((left.location.loc=LOC_CREFERENCE) and
|
||||
is_self_node(left)) then
|
||||
internalerror(200106041);
|
||||
end;
|
||||
{ Force to be in memory }
|
||||
if not(left.location.loc in [LOC_CREFERENCE,LOC_REFERENCE]) then
|
||||
location_force_mem(current_asmdata.CurrAsmList,left.location);
|
||||
|
Loading…
Reference in New Issue
Block a user