* 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:
nickysn 2014-05-23 20:59:07 +00:00
parent 46486a9e63
commit cb05907e18

View File

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