Skip to content

Commit

Permalink
fix: Function::is_no_predicates always returned false for brillig f… (
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite authored Jan 23, 2025
1 parent b3a8f39 commit 8cab0e4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions compiler/noirc_evaluator/src/ssa/ir/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,7 @@ impl Function {
}

pub(crate) fn is_no_predicates(&self) -> bool {
match self.runtime() {
RuntimeType::Acir(inline_type) => matches!(inline_type, InlineType::NoPredicates),
RuntimeType::Brillig(_) => false,
}
self.runtime().is_no_predicates()
}

/// Retrieves the entry block of a function.
Expand Down

0 comments on commit 8cab0e4

Please sign in to comment.