mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 18:19:16 +02:00
* 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:
parent
aa1be3276f
commit
6b7f55cc77
@ -865,7 +865,7 @@ implementation
|
|||||||
begin
|
begin
|
||||||
unitinits.emit_procdef_const(pd);
|
unitinits.emit_procdef_const(pd);
|
||||||
if u<>current_module then
|
if u<>current_module then
|
||||||
u.addimportedsym(pd.procsym);
|
current_module.addimportedsym(pd.procsym);
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
unitinits.emit_tai(Tai_const.Create_nil_codeptr,voidcodepointertype);
|
unitinits.emit_tai(Tai_const.Create_nil_codeptr,voidcodepointertype);
|
||||||
@ -874,7 +874,7 @@ implementation
|
|||||||
begin
|
begin
|
||||||
unitinits.emit_procdef_const(pd);
|
unitinits.emit_procdef_const(pd);
|
||||||
if u<>current_module then
|
if u<>current_module then
|
||||||
u.addimportedsym(pd.procsym);
|
current_module.addimportedsym(pd.procsym);
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
unitinits.emit_tai(Tai_const.Create_nil_codeptr,voidcodepointertype);
|
unitinits.emit_tai(Tai_const.Create_nil_codeptr,voidcodepointertype);
|
||||||
|
Loading…
Reference in New Issue
Block a user