Skip to content

Commit 8cab0e4

Browse files
authored
fix: Function::is_no_predicates always returned false for brillig f… (#7167)
1 parent b3a8f39 commit 8cab0e4

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

compiler/noirc_evaluator/src/ssa/ir/function.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,7 @@ impl Function {
143143
}
144144

145145
pub(crate) fn is_no_predicates(&self) -> bool {
146-
match self.runtime() {
147-
RuntimeType::Acir(inline_type) => matches!(inline_type, InlineType::NoPredicates),
148-
RuntimeType::Brillig(_) => false,
149-
}
146+
self.runtime().is_no_predicates()
150147
}
151148

152149
/// Retrieves the entry block of a function.

0 commit comments

Comments
 (0)