Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Jul 9, 2024
1 parent 6aa8f3e commit 89403c5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions compiler/noirc_evaluator/src/ssa/acir_gen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -996,8 +996,14 @@ 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));
if self.handle_constant_index(instruction, dfg, array, constant_index, store_value)? {
return Ok(());
if self.handle_constant_index(
instruction,
dfg,
array,
constant_index,
store_value,
)? {
return Ok(());
}
}
}
Expand Down

0 comments on commit 89403c5

Please sign in to comment.