mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 02:40:26 +02:00
* fixed WebAssembly code generation in thlcgwasm.g_overflowCheck_loc (patch by Pierre)
This commit is contained in:
parent
8bea5dd41e
commit
6e4e3b8580
@ -2164,8 +2164,10 @@ implementation
|
||||
if not(cs_check_overflow in current_settings.localswitches) then
|
||||
exit;
|
||||
current_asmdata.getjumplabel(hl);
|
||||
list.concat(taicpu.op_none(a_block));
|
||||
a_cmp_const_loc_label(list,s32inttype,OC_EQ,0,ovloc,hl);
|
||||
g_call_system_proc(list,'fpc_overflow',[],nil);
|
||||
list.concat(taicpu.op_none(a_end_block));
|
||||
a_label(list,hl);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user