Skip to content

Commit

Permalink
Change terminology
Browse files Browse the repository at this point in the history
  • Loading branch information
jfecher committed Apr 28, 2023
1 parent ecdbca6 commit 77b601a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/noirc_evaluator/src/ssa_refactor/ssa_gen/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ impl<'a> FunctionContext<'a> {
self.definitions.insert(parameter_id, parameter_value);
}

/// Create a new mutable storage slot and store into it the given initial value of the variable.
/// Allocate a single slot of memory and store into it the given initial value of the variable.
/// Always returns a Value::Mutable wrapping the allocate instruction.
pub(super) fn new_mutable_variable(&mut self, value_to_store: ValueId) -> Value {
let alloc = self.builder.insert_allocate(1);
self.builder.insert_store(alloc, value_to_store);
Expand Down

0 comments on commit 77b601a

Please sign in to comment.