Skip to content

Commit

Permalink
remove assert_constant case from brillig_block
Browse files Browse the repository at this point in the history
  • Loading branch information
vezenovm committed Sep 6, 2023
1 parent a14f9f3 commit 2c695e3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ fn merge_slices_mutate(x: Field, y: Field) -> [Field] {
slice = slice.push_back(x);
} else {
slice = slice.push_back(x);
};
}
slice
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,10 +444,6 @@ impl<'block> BrilligBlock<'block> {

self.brillig_context.deallocate_register(radix);
}
Value::Intrinsic(Intrinsic::AssertConstant) => {
// Do nothing here as Brillig should be able to handle
// runtime values everywhere including loop bounds and array indices
}
_ => {
unreachable!("unsupported function call type {:?}", dfg[*func])
}
Expand Down

0 comments on commit 2c695e3

Please sign in to comment.