mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 22:47:54 +02:00
* don't allocate persistent temps for classes (they are not refcounted)
git-svn-id: trunk@14372 -
This commit is contained in:
parent
092823308a
commit
09b4918cab
@ -381,7 +381,8 @@ interface
|
||||
internalerror(200108222);
|
||||
|
||||
{ get a (persistent) temp }
|
||||
if tempinfo^.typedef.needs_inittable then
|
||||
if (tempinfo^.typedef.needs_inittable) and
|
||||
not is_class(tempinfo^.typedef) then
|
||||
begin
|
||||
location_reset_ref(tempinfo^.location,LOC_REFERENCE,def_cgsize(tempinfo^.typedef),0);
|
||||
tg.GetTempTyped(current_asmdata.CurrAsmList,tempinfo^.typedef,tempinfo^.temptype,tempinfo^.location.reference);
|
||||
|
Loading…
Reference in New Issue
Block a user