From 181a2dccfd3f70e98fde195fc32dc07c51e4fb5c Mon Sep 17 00:00:00 2001 From: viktorking7 <140458814+viktorking7@users.noreply.github.com> Date: Mon, 8 Sep 2025 13:41:57 +0200 Subject: [PATCH 1/2] Update context.rs --- smart_ir/src/ir_codegen/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smart_ir/src/ir_codegen/context.rs b/smart_ir/src/ir_codegen/context.rs index a479021..e59e33f 100644 --- a/smart_ir/src/ir_codegen/context.rs +++ b/smart_ir/src/ir_codegen/context.rs @@ -1151,7 +1151,7 @@ impl<'ctx> IR2LLVMCodeGenContext<'ctx> { // } for ir_module in &self.ir_modules { - // scan all module's func defintions to use in other modules + // scan all module's func definitions to use in other modules for (_, function) in &ir_module.functions { self.func_definitions.borrow_mut().push(function.clone()); } From b017d4811d2f580e7c65641a280652389db6e4fb Mon Sep 17 00:00:00 2001 From: viktorking7 <140458814+viktorking7@users.noreply.github.com> Date: Mon, 8 Sep 2025 13:42:21 +0200 Subject: [PATCH 2/2] Update ir.rs --- smart_ir/src/ir_codegen/ir.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smart_ir/src/ir_codegen/ir.rs b/smart_ir/src/ir_codegen/ir.rs index 7bb32c7..8b1c118 100644 --- a/smart_ir/src/ir_codegen/ir.rs +++ b/smart_ir/src/ir_codegen/ir.rs @@ -513,7 +513,7 @@ impl<'ctx> IR2LLVMCodeGenContext<'ctx> { } else { return Err(CodeGenError { message: - "try to get field from a pointer whose elemet isn't a struct" + "try to get field from a pointer whose element isn't a struct" .to_string(), }); }