* fixed result cgsize of LLVM's second_nothing type conversion node (new

size instead of original size, which can be different in case of going
    from void to something else)

git-svn-id: trunk@40632 -
This commit is contained in:
Jonas Maebe 2018-12-24 22:09:58 +00:00
parent eb769e3859
commit f3d831b480

View File

@ -283,7 +283,7 @@ procedure tllvmtypeconvnode.second_nothing;
hlcg.location_force_mem(current_asmdata.CurrAsmList,left.location,left.resultdef);
hreg:=hlcg.getaddressregister(current_asmdata.CurrAsmList,cpointerdef.getreusable(resultdef));
hlcg.a_loadaddr_ref_reg(current_asmdata.CurrAsmList,left.resultdef,cpointerdef.getreusable(resultdef),left.location.reference,hreg);
location_reset_ref(location,left.location.loc,left.location.size,left.location.reference.alignment,left.location.reference.volatility);
location_reset_ref(location,left.location.loc,def_cgsize(resultdef),left.location.reference.alignment,left.location.reference.volatility);
reference_reset_base(location.reference,hreg,0,location.reference.temppos,location.reference.alignment,location.reference.volatility);
end
else