Skip to content

Commit

Permalink
Update compiler/noirc_evaluator/src/ssa/acir_gen/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Maxim Vezenov <[email protected]>
  • Loading branch information
TomAFrench and vezenovm authored Jul 9, 2024
1 parent a2dc530 commit 6aa8f3e
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions compiler/noirc_evaluator/src/ssa/acir_gen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -996,15 +996,8 @@ impl<'a> Context<'a> {
// `AcirValue::Array` supports reading/writing to constant indices at compile-time in some cases.
if let Some(constant_index) = dfg.get_numeric_constant(index) {
let store_value = store_value.map(|value| self.convert_value(value, dfg));
let handled = self.handle_constant_index(
instruction,
dfg,
array,
constant_index,
store_value,
)?;
if handled {
return Ok(());
if self.handle_constant_index(instruction, dfg, array, constant_index, store_value)? {
return Ok(());
}
}
}
Expand Down

0 comments on commit 6aa8f3e

Please sign in to comment.