add NullPointer to mono::ir::Expr

This commit is contained in:
Folkert 2023-03-30 19:57:16 +02:00
parent 63cdd00d13
commit 09779f65ad
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
9 changed files with 28 additions and 3 deletions

View file

@ -1878,6 +1878,7 @@ pub enum Expr<'a> {
arguments: &'a [Symbol],
},
Struct(&'a [Symbol]),
NullPointer,
StructAtIndex {
index: u64,
@ -2016,6 +2017,7 @@ impl<'a> Expr<'a> {
.append(alloc.space())
.append(alloc.intersperse(it, " "))
}
NullPointer => alloc.text("NullPointer"),
Reuse {
symbol,
tag_id,
@ -7462,6 +7464,8 @@ fn substitute_in_expr<'a>(
}
}
NullPointer => None,
Reuse { .. } | Reset { .. } => unreachable!("reset/reuse have not been introduced yet"),
Struct(args) => {