From 073a3fe4f45ee59f624436c89fde843e5d7bba16 Mon Sep 17 00:00:00 2001 From: Denys Zadorozhnyi Date: Tue, 30 Jul 2024 19:25:57 +0300 Subject: [PATCH] refactor: fix typo in `translation_utils::sig_from_func_type` function name --- frontend-wasm/src/module/module_translation_state.rs | 4 ++-- frontend-wasm/src/translation_utils.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend-wasm/src/module/module_translation_state.rs b/frontend-wasm/src/module/module_translation_state.rs index 08e66ba31..12ebb48a1 100644 --- a/frontend-wasm/src/module/module_translation_state.rs +++ b/frontend-wasm/src/module/module_translation_state.rs @@ -8,7 +8,7 @@ use crate::{ error::WasmResult, intrinsics::is_miden_intrinsics_module, miden_abi::{is_miden_abi_module, miden_abi_function_type, parse_import_function_digest}, - translation_utils::sig_from_funct_type, + translation_utils::sig_from_func_type, WasmError, }; @@ -52,7 +52,7 @@ impl ModuleTranslationState { for (index, func_type) in &module.functions { let wasm_func_type = mod_types[func_type.signature].clone(); let ir_func_type = ir_func_type(&wasm_func_type).unwrap(); - let sig = sig_from_funct_type(&ir_func_type, CallConv::SystemV, Linkage::External); + let sig = sig_from_func_type(&ir_func_type, CallConv::SystemV, Linkage::External); if let Some(subst) = function_import_subst.get(&index) { functions.insert(index, (*subst, sig)); } else if module.is_imported_function(index) { diff --git a/frontend-wasm/src/translation_utils.rs b/frontend-wasm/src/translation_utils.rs index 0da137732..5817ea647 100644 --- a/frontend-wasm/src/translation_utils.rs +++ b/frontend-wasm/src/translation_utils.rs @@ -133,7 +133,7 @@ pub fn emit_zero(ty: &Type, builder: &mut FunctionBuilderExt) -> WasmResult