* use the correct opcode when loading integer pointer constants (such as nil)

git-svn-id: branches/hlcgllvm@28386 -
This commit is contained in:
Jonas Maebe 2014-08-12 18:59:10 +00:00
parent 0867b6e4f8
commit a2e0f729c6

View File

@ -423,7 +423,7 @@ implementation
procedure thlcgllvm.a_load_const_reg(list: TAsmList; tosize: tdef; a: tcgint; register: tregister);
begin
list.concat(taillvm.op_reg_size_const_size(la_bitcast,register,tosize,a,tosize))
list.concat(taillvm.op_reg_size_const_size(llvmconvop(ptrsinttype,tosize),register,ptrsinttype,a,tosize))
end;