mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-27 20:11:02 +02:00
* similar change as in r34976 for the generic code: don't assume that if
a load node for a procsym has a self pointer, that we have to create a procvar with a self pointer (e.g. when loading the address of a static class method). Avoids the generation of superfluous code to load self which is then not used afterwards git-svn-id: trunk@35005 -
This commit is contained in:
parent
26f9dabf56
commit
1c820e9c8e
@ -521,7 +521,9 @@ implementation
|
|||||||
begin
|
begin
|
||||||
if not assigned(procdef) then
|
if not assigned(procdef) then
|
||||||
internalerror(200312011);
|
internalerror(200312011);
|
||||||
if assigned(left) then
|
if assigned(left) and
|
||||||
|
(resultdef.typ in [symconst.procdef,procvardef]) and
|
||||||
|
not tabstractprocdef(resultdef).is_addressonly then
|
||||||
begin
|
begin
|
||||||
location_reset(location,LOC_CREGISTER,int_cgsize(voidpointertype.size*2));
|
location_reset(location,LOC_CREGISTER,int_cgsize(voidpointertype.size*2));
|
||||||
secondpass(left);
|
secondpass(left);
|
||||||
|
Loading…
Reference in New Issue
Block a user