mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-18 17:49:47 +00:00
add NullPointer to mono::ir::Expr
This commit is contained in:
parent
63cdd00d13
commit
09779f65ad
9 changed files with 28 additions and 3 deletions
|
@ -1041,6 +1041,8 @@ impl<'a, 'r> WasmBackend<'a, 'r> {
|
|||
match expr {
|
||||
Expr::Literal(lit) => self.expr_literal(lit, storage),
|
||||
|
||||
Expr::NullPointer => self.expr_null_pointer(),
|
||||
|
||||
Expr::Call(roc_mono::ir::Call {
|
||||
call_type,
|
||||
arguments,
|
||||
|
@ -1232,6 +1234,10 @@ impl<'a, 'r> WasmBackend<'a, 'r> {
|
|||
elements_addr
|
||||
}
|
||||
|
||||
fn expr_null_pointer(&mut self) {
|
||||
self.code_builder.i32_const(0);
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
* Call expressions
|
||||
*******************************************************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue