mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-08 18:09:39 +01:00
* 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:
parent
b76539a049
commit
d5e5ca0531
@ -3934,6 +3934,9 @@ implementation
|
|||||||
LOC_JUMP :
|
LOC_JUMP :
|
||||||
begin
|
begin
|
||||||
a_label(list,l.truelabel);
|
a_label(list,l.truelabel);
|
||||||
|
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);
|
a_load_const_reg(list,dst_size,1,hregister);
|
||||||
current_asmdata.getjumplabel(hl);
|
current_asmdata.getjumplabel(hl);
|
||||||
a_jmp_always(list,hl);
|
a_jmp_always(list,hl);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user