From 4ccb2f75663f94ab6aeaa8fba187696879e30f1c Mon Sep 17 00:00:00 2001 From: d0cd Date: Wed, 4 Oct 2023 00:15:44 -0400 Subject: [PATCH] Update compiler/passes/src/function_inlining/inline_program.rs Signed-off-by: d0cd --- compiler/passes/src/function_inlining/inline_program.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/passes/src/function_inlining/inline_program.rs b/compiler/passes/src/function_inlining/inline_program.rs index 95068ffde6..8e8fea2d9a 100644 --- a/compiler/passes/src/function_inlining/inline_program.rs +++ b/compiler/passes/src/function_inlining/inline_program.rs @@ -28,7 +28,7 @@ impl ProgramReconstructor for FunctionInliner<'_> { let order = self.call_graph.post_order().unwrap(); // Construct map to provide faster lookup of functions - let function_map: IndexMap = input.functions.clone().into_iter().collect(); + let mut function_map: IndexMap = input.functions.clone().into_iter().collect(); // Construct set to keep track of the remaining functions that still need to be processed. let mut function_set: IndexSet = function_map.keys().cloned().collect();