cranelift: Remove predicate not macro branch (#5552)
This commit is contained in:
@@ -17,15 +17,6 @@ macro_rules! predicate {
|
|||||||
($a:ident && $($b:tt)*) => {
|
($a:ident && $($b:tt)*) => {
|
||||||
PredicateNode::And(Box::new($a.into()), Box::new(predicate!($($b)*)))
|
PredicateNode::And(Box::new($a.into()), Box::new(predicate!($($b)*)))
|
||||||
};
|
};
|
||||||
(!$a:ident && $($b:tt)*) => {
|
|
||||||
PredicateNode::And(
|
|
||||||
Box::new(PredicateNode::Not(Box::new($a.into()))),
|
|
||||||
Box::new(predicate!($($b)*))
|
|
||||||
)
|
|
||||||
};
|
|
||||||
(!$a:ident) => {
|
|
||||||
PredicateNode::Not(Box::new($a.into()))
|
|
||||||
};
|
|
||||||
($a:ident) => {
|
($a:ident) => {
|
||||||
$a.into()
|
$a.into()
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user