null pointer

This commit is contained in:
J.Teeuwissen 2023-03-31 21:09:59 +02:00
parent 7759ce6fc4
commit fbd243e28c
No known key found for this signature in database
GPG key ID: DB5F7A1ED8D478AD

View file

@ -251,7 +251,10 @@ impl VariableUsage {
expr: &Expr<'a>, expr: &Expr<'a>,
) -> VariableUsage { ) -> VariableUsage {
match expr { 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. // Literals, empty arrays, and runtime errors are not (and have nothing) reference counted.
VariableUsage::default() VariableUsage::default()
} }