mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 16:29:19 +02:00
* don't use hardcoded expectloc for certain types for callnodes (was wrong
for floatdefs handled via vectorfpu) git-svn-id: trunk@15274 -
This commit is contained in:
parent
5405dfe119
commit
34cf323f7a
@ -3223,23 +3223,7 @@ implementation
|
|||||||
else
|
else
|
||||||
{ we have only to handle the result if it is used }
|
{ we have only to handle the result if it is used }
|
||||||
if (cnf_return_value_used in callnodeflags) then
|
if (cnf_return_value_used in callnodeflags) then
|
||||||
begin
|
expectloc:=procdefinition.funcretloc[callerside].loc
|
||||||
case resultdef.typ of
|
|
||||||
enumdef,
|
|
||||||
orddef :
|
|
||||||
begin
|
|
||||||
expectloc:=LOC_REGISTER;
|
|
||||||
end;
|
|
||||||
floatdef :
|
|
||||||
begin
|
|
||||||
expectloc:=LOC_FPUREGISTER;
|
|
||||||
end;
|
|
||||||
else
|
|
||||||
begin
|
|
||||||
expectloc:=procdefinition.funcretloc[callerside].loc;
|
|
||||||
end;
|
|
||||||
end;
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
expectloc:=LOC_VOID;
|
expectloc:=LOC_VOID;
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user