mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-03 19:53:01 +02:00
* 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:
parent
eb769e3859
commit
f3d831b480
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user