From a323e41c186e3b6a82ae5c2f28673e6a674bb323 Mon Sep 17 00:00:00 2001 From: Graham Kelly Date: Wed, 13 Mar 2024 21:00:07 -0400 Subject: [PATCH] mutable funcs --- src/ir/module.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ir/module.rs b/src/ir/module.rs index 54be09b..220b0f0 100644 --- a/src/ir/module.rs +++ b/src/ir/module.rs @@ -198,7 +198,7 @@ impl<'a> Module<'a> { backend::compile(self) } - pub fn per_func_body(&mut self, f: F) { + pub fn per_func_body(&mut self, mut f: F) { for func_decl in self.funcs.values_mut() { if let Some(body) = func_decl.body_mut() { f(body);