소스 검색

* the first parameter of loadaddr_ref_reg has to be converted to a pointer
(it's the type of the data stored in memory at that address, but we use
the address itself here)

git-svn-id: branches/hlcgllvm@26985 -

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

+ 1 - 1
compiler/llvm/hlcgllvm.pas

@@ -245,7 +245,7 @@ implementation
       if ref.refaddr=addr_full then
         internalerror(2013102306);
       sref:=make_simple_ref(list,ref,fromsize);
-      list.concat(taillvm.op_reg_size_ref_size(la_bitcast,r,fromsize,sref,tosize));
+      list.concat(taillvm.op_reg_size_ref_size(la_bitcast,r,getpointerdef(fromsize),sref,tosize));
     end;