mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 02:19:27 +02: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,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);
|
||||
|
Loading…
Reference in New Issue
Block a user