* 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 -
This commit is contained in:
Jonas Maebe 2015-06-13 22:48:43 +00:00
parent b176ed9f80
commit 4c11d34169

View File

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