mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-08 10:59:10 +02:00
* fixed the global function to nested procvar conversion in the i8086 far data
memory models git-svn-id: trunk@27814 -
This commit is contained in:
parent
46486a9e63
commit
cb05907e18
@ -574,7 +574,12 @@ interface
|
||||
since the global procedure won't use it, but it can help with
|
||||
debugging }
|
||||
inc(location.reference.offset,voidcodepointertype.size);
|
||||
hlcg.a_load_const_ref(current_asmdata.CurrAsmList,voidpointertype,0,location.reference);
|
||||
if (resultdef.typ=procvardef) and is_nested_pd(tprocvardef(resultdef)) then
|
||||
hlcg.a_load_const_ref(current_asmdata.CurrAsmList,parentfpvoidpointertype,0,location.reference)
|
||||
else if tabstractprocdef(resultdef).is_methodpointer then
|
||||
hlcg.a_load_const_ref(current_asmdata.CurrAsmList,voidpointertype,0,location.reference)
|
||||
else
|
||||
internalerror(2014052301);
|
||||
dec(location.reference.offset,voidcodepointertype.size);
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user