mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-24 18:52:58 +03:00
Update compiler/passes/src/function_inlining/inline_program.rs
Signed-off-by: d0cd <pranavsaig@gmail.com>
This commit is contained in:
parent
f6a8f46dee
commit
184c306688
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user