From bebe53ef9f82bab6c8a6396f4c96d53d73db796f Mon Sep 17 00:00:00 2001 From: Nikolay Nikolov Date: Mon, 5 Jun 2023 02:46:34 +0300 Subject: [PATCH] * added support and simplified the handling of results in create_functype_common for reference types --- compiler/wasm32/symcpu.pas | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/compiler/wasm32/symcpu.pas b/compiler/wasm32/symcpu.pas index a024be662c..3462ec7928 100644 --- a/compiler/wasm32/symcpu.pas +++ b/compiler/wasm32/symcpu.pas @@ -264,16 +264,7 @@ implementation begin if not defToWasmBasic(pd.returndef,bt) then bt:=wbt_i32; - case bt of - wbt_i64: - result.add_result(wbt_i64); - wbt_f32: - result.add_result(wbt_f32); - wbt_f64: - result.add_result(wbt_f64); - else - result.add_result(wbt_i32); - end; + result.add_result(bt); end; end;