mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-19 12:09:14 +02:00
* values passed to const parameters are not limited to registers and constants
git-svn-id: trunk@43500 -
This commit is contained in:
parent
4fd670c6ec
commit
52cc02aa3b
@ -275,7 +275,7 @@ implementation
|
|||||||
begin
|
begin
|
||||||
{ allow passing of a constant to a const formaldef }
|
{ allow passing of a constant to a const formaldef }
|
||||||
if (parasym.varspez=vs_const) and
|
if (parasym.varspez=vs_const) and
|
||||||
(left.location.loc in [LOC_CONSTANT,LOC_REGISTER]) then
|
not(left.location.loc in [LOC_CREFERENCE,LOC_REFERENCE]) then
|
||||||
hlcg.location_force_mem(current_asmdata.CurrAsmList,left.location,left.resultdef);
|
hlcg.location_force_mem(current_asmdata.CurrAsmList,left.location,left.resultdef);
|
||||||
push_addr_para;
|
push_addr_para;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user