* fixed compilation of threadvars in i8086 far data memory models

git-svn-id: trunk@31662 -
This commit is contained in:
nickysn 2015-09-13 12:52:23 +00:00
parent 381270bf30
commit c7ecf84fc0

View File

@ -322,7 +322,7 @@ implementation
{ load the address of the result in hregister }
hregister:=hlcg.getaddressregister(current_asmdata.CurrAsmList,fieldptrdef);
location_reset(tmpresloc,LOC_REGISTER,OS_ADDR);
location_reset(tmpresloc,LOC_REGISTER,def_cgsize(fieldptrdef));
tmpresloc.register:=hregister;
hlcg.gen_load_cgpara_loc(current_asmdata.CurrAsmList,fieldptrdef,respara,tmpresloc,true);
respara.resetiftemp;