Skip to content

Commit

Permalink
chore(ssa refactor): Fix inlining bug (#1335)
Browse files Browse the repository at this point in the history
Fix inlining bug
  • Loading branch information
jfecher authored May 11, 2023
1 parent 12f3e7e commit f33a004
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/noirc_evaluator/src/ssa_refactor/opt/inlining.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ impl<'function> PerFunctionContext<'function> {
arguments: &[ValueId],
) {
let old_results = self.source_function.dfg.instruction_results(call_id);
let new_results = self.context.inline_function(ssa, function, arguments);
let arguments = vecmap(arguments, |arg| self.translate_value(*arg));
let new_results = self.context.inline_function(ssa, function, &arguments);
Self::insert_new_instruction_results(&mut self.values, old_results, new_results);
}

Expand Down

0 comments on commit f33a004

Please sign in to comment.