* fixed conversion of LOC_JUMP in location_force_reg() for C-style booleans

(usually these are never LOC_JUMP, but it happens for LLVM)

git-svn-id: trunk@33941 -
This commit is contained in:
Jonas Maebe 2016-06-09 22:00:07 +00:00
parent b76539a049
commit d5e5ca0531

View File

@ -3934,7 +3934,10 @@ implementation
LOC_JUMP :
begin
a_label(list,l.truelabel);
a_load_const_reg(list,dst_size,1,hregister);
if is_cbool(src_size) then
a_load_const_reg(list,dst_size,-1,hregister)
else
a_load_const_reg(list,dst_size,1,hregister);
current_asmdata.getjumplabel(hl);
a_jmp_always(list,hl);
a_label(list,l.falselabel);