mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 17:19:33 +02:00
* fixed WebAssembly code generation for 'if boolean64 then ... else ...'
This commit is contained in:
parent
4d571a1928
commit
2e5b895d70
@ -213,6 +213,13 @@ implementation
|
||||
secondpass(left); // condition exprssions
|
||||
thlcgwasm(hlcg).a_load_loc_stack(current_asmdata.CurrAsmList,left.resultdef,left.location);
|
||||
|
||||
if is_64bit(left.resultdef) then
|
||||
begin
|
||||
thlcgwasm(hlcg).a_load_const_stack(current_asmdata.CurrAsmList,left.resultdef,0,R_INTREGISTER);
|
||||
current_asmdata.CurrAsmList.Concat(taicpu.op_none(a_i64_ne));
|
||||
thlcgwasm(hlcg).decstack(current_asmdata.CurrAsmList,1);
|
||||
end;
|
||||
|
||||
current_asmdata.CurrAsmList.concat(taicpu.op_none(a_if));
|
||||
thlcgwasm(hlcg).incblock;
|
||||
thlcgwasm(hlcg).decstack(current_asmdata.CurrAsmList,1);
|
||||
|
Loading…
Reference in New Issue
Block a user