소스 검색

* gen_load_cgpara_loc() should only honour reusepara if it's a memory
parameter

git-svn-id: trunk@30721 -

Jonas Maebe 10 년 전
부모
커밋
78e68b89df
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      compiler/llvm/hlcgllvm.pas

+ 2 - 1
compiler/llvm/hlcgllvm.pas

@@ -1325,7 +1325,8 @@ implementation
         exit;
         exit;
       { If the parameter location is reused we don't need to copy
       { If the parameter location is reused we don't need to copy
         anything }
         anything }
-      if reusepara then
+      if (destloc.loc=LOC_REFERENCE) and
+         reusepara then
         exit;
         exit;
       { get the equivalent llvm def used to pass the parameter (e.g. a record
       { get the equivalent llvm def used to pass the parameter (e.g. a record
         with two int64 fields for passing a record consisiting of 8 bytes on
         with two int64 fields for passing a record consisiting of 8 bytes on