浏览代码

* fixed loading the address of the string data of an ansi/unicodestring
constant in the llvm code generator (the constant is a record rather than
a pointer to a record -> not indirect)

git-svn-id: trunk@31062 -

Jonas Maebe 10 年之前
父节点
当前提交
4c11d34169
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/llvm/nllvmcon.pas

+ 1 - 1
compiler/llvm/nllvmcon.pas

@@ -132,7 +132,7 @@ implementation
         reference_reset_symbol(href, lab_str, 0, const_align(strpointerdef.size));
         current_asmdata.CurrAsmList.concat(
           taillvm.getelementptr_reg_size_ref_size_const(reg,dataptrdef,href,
-          s32inttype,field.llvmfieldnr,true));
+          s32inttype,field.llvmfieldnr,false));
         { convert into a pointer to the individual elements }
         hlcg.a_load_reg_reg(current_asmdata.CurrAsmList,dataptrdef,strpointerdef,reg,location.register);
       end;