* don't allocate persistent temps for classes (they are not refcounted)

git-svn-id: trunk@14372 -
This commit is contained in:
Jonas Maebe 2009-12-08 20:00:27 +00:00
parent 092823308a
commit 09b4918cab

View File

@ -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);