Emit IL alongside raw IC10 for use in future optimization passes
This commit is contained in:
@@ -403,6 +403,12 @@ pub enum Number {
|
||||
Decimal(Decimal),
|
||||
}
|
||||
|
||||
impl From<bool> for Number {
|
||||
fn from(value: bool) -> Self {
|
||||
Self::Integer(if value { 1 } else { 0 })
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Number> for Decimal {
|
||||
fn from(value: Number) -> Self {
|
||||
match value {
|
||||
|
||||
Reference in New Issue
Block a user