From fbd243e28c7db1480d29e92792912c0fd59e875f Mon Sep 17 00:00:00 2001 From: "J.Teeuwissen" Date: Fri, 31 Mar 2023 21:09:59 +0200 Subject: [PATCH] null pointer --- crates/compiler/mono/src/perceus.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/compiler/mono/src/perceus.rs b/crates/compiler/mono/src/perceus.rs index 4acee5b3e4..ce57b19f41 100644 --- a/crates/compiler/mono/src/perceus.rs +++ b/crates/compiler/mono/src/perceus.rs @@ -251,7 +251,10 @@ impl VariableUsage { expr: &Expr<'a>, ) -> VariableUsage { match expr { - Expr::Literal(_) | Expr::EmptyArray | Expr::RuntimeErrorFunction(_) => { + Expr::Literal(_) + | Expr::NullPointer + | Expr::EmptyArray + | Expr::RuntimeErrorFunction(_) => { // Literals, empty arrays, and runtime errors are not (and have nothing) reference counted. VariableUsage::default() }