mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 04:46:12 +02:00
compiler: fix safecall result handling if it is placed to a register
git-svn-id: trunk@14952 -
This commit is contained in:
parent
e9c95ea46f
commit
e2fdfc426f
@ -1595,7 +1595,7 @@ implementation
|
||||
{ Set return value of safecall procedure to indicate exception. }
|
||||
{ Exception will be raised after procedure exit based on return value }
|
||||
cg.a_reg_alloc(current_asmdata.CurrAsmList,NR_FUNCTION_RESULT_REG);
|
||||
cg.a_load_ref_reg(current_asmdata.CurrAsmList,retsym.localloc.size,OS_INT,retsym.localloc.reference,NR_FUNCTION_RESULT_REG);
|
||||
cg.a_load_loc_reg(current_asmdata.CurrAsmList,OS_INT,retsym.localloc,NR_FUNCTION_RESULT_REG);
|
||||
cg.a_reg_dealloc(current_asmdata.CurrAsmList,NR_FUNCTION_RESULT_REG);
|
||||
end
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user