* import the class con-/destructor symbol into the *current* unit not into the unit the symbol comes from

git-svn-id: trunk@34251 -
This commit is contained in:
svenbarth 2016-08-05 13:48:27 +00:00
parent aa1be3276f
commit 6b7f55cc77

View File

@ -865,7 +865,7 @@ implementation
begin
unitinits.emit_procdef_const(pd);
if u<>current_module then
u.addimportedsym(pd.procsym);
current_module.addimportedsym(pd.procsym);
end
else
unitinits.emit_tai(Tai_const.Create_nil_codeptr,voidcodepointertype);
@ -874,7 +874,7 @@ implementation
begin
unitinits.emit_procdef_const(pd);
if u<>current_module then
u.addimportedsym(pd.procsym);
current_module.addimportedsym(pd.procsym);
end
else
unitinits.emit_tai(Tai_const.Create_nil_codeptr,voidcodepointertype);