Skip to content

Commit 53c69a8

Browse files
committed
Prevent allocation
1 parent a9f3483 commit 53c69a8

File tree

1 file changed

+3
-7
lines changed
  • synthesizer/process/src/stack/call

1 file changed

+3
-7
lines changed

synthesizer/process/src/stack/call/mod.rs

+3-7
Original file line numberDiff line numberDiff line change
@@ -283,15 +283,11 @@ impl<N: Network> CallTrait<N> for Call<N> {
283283
.iter()
284284
.map(|output| substack.sample_value(&address, output.value_type(), rng))
285285
.collect::<Result<Vec<_>>>()?;
286-
287-
// Retrieve the output operands.
288-
let output_operands =
289-
&function.outputs().iter().map(|output| output.operand()).collect::<Vec<_>>();
290-
291286
// Map the output operands to registers.
292-
let output_registers = output_operands
287+
let output_registers = function
288+
.outputs()
293289
.iter()
294-
.map(|operand| match operand {
290+
.map(|output| match output.operand() {
295291
Operand::Register(register) => Some(register.clone()),
296292
_ => None,
297293
})

0 commit comments

Comments
 (0)