Browse Source

* 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 years ago
parent
commit
f344adaf22
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/llvm/hlcgllvm.pas

+ 1 - 1
compiler/llvm/hlcgllvm.pas

@@ -245,7 +245,7 @@ implementation
       if ref.refaddr=addr_full then
       if ref.refaddr=addr_full then
         internalerror(2013102306);
         internalerror(2013102306);
       sref:=make_simple_ref(list,ref,fromsize);
       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;
     end;