diff --git a/compiler/ncgcal.pas b/compiler/ncgcal.pas index 0008f6b323..7055b9d2b4 100644 --- a/compiler/ncgcal.pas +++ b/compiler/ncgcal.pas @@ -888,7 +888,7 @@ implementation if right.location.loc in [LOC_REFERENCE,LOC_CREFERENCE] then cg.a_load_ref_reg(current_asmdata.CurrAsmList,OS_ADDR,OS_ADDR,right.location.reference,pvreg) else - hlcg.a_load_loc_reg(current_asmdata.CurrAsmList,right.resultdef,right.resultdef,right.location,pvreg); + hlcg.a_load_loc_reg(current_asmdata.CurrAsmList,voidpointertype,voidpointertype,right.location,pvreg); location_freetemp(current_asmdata.CurrAsmList,right.location); { Load parameters that are in temporary registers in the