浏览代码

compiler: fix safecall result handling if it is placed to a register

git-svn-id: trunk@14952 -
paul 15 年之前
父节点
当前提交
e2fdfc426f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/ncgflw.pas

+ 1 - 1
compiler/ncgflw.pas

@@ -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