Update compiler/passes/src/function_inlining/inline_program.rs

Signed-off-by: d0cd <pranavsaig@gmail.com>
This commit is contained in:
d0cd 2023-10-04 00:15:56 -04:00 committed by evan-schott
parent f6a8f46dee
commit 184c306688

View File

@ -39,7 +39,7 @@ impl ProgramReconstructor for FunctionInliner<'_> {
// TODO: Check that this is indeed an external function. Requires a redesign of the symbol table.
if let Some(function) = function_map.remove(&function_name) {
// Reconstruct the function.
let reconstructed_function = self.reconstruct_function(function.clone());
let reconstructed_function = self.reconstruct_function(function);
// Add the reconstructed function to the mapping.
self.reconstructed_functions.insert(function_name, reconstructed_function);
}