Skip to content

Commit 20a5713

Browse files
committed
Fix error
1 parent bed908a commit 20a5713

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

compiler/noirc_evaluator/src/ssa/checks/check_for_underconstrained_values.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ impl DependencyContext {
314314
self.update_children(&arguments, &results);
315315
}
316316
},
317-
Value::Function(callee) => match all_functions[callee].runtime() {
317+
Value::Function(callee) => match all_functions[&callee].runtime() {
318318
RuntimeType::Brillig(_) => {
319319
// Record arguments/results for each Brillig call for the check
320320
self.tainted.insert(
@@ -590,7 +590,7 @@ impl Context {
590590
self.value_sets.push(instruction_arguments_and_results);
591591
}
592592
},
593-
Value::Function(callee) => match all_functions[callee].runtime() {
593+
Value::Function(callee) => match all_functions[&callee].runtime() {
594594
RuntimeType::Brillig(_) => {
595595
// For calls to Brillig functions we memorize the mapping of results to argument ValueId's and InstructionId's
596596
// The latter are needed to produce the callstack later

0 commit comments

Comments
 (0)