mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
null pointer
This commit is contained in:
parent
7759ce6fc4
commit
fbd243e28c
1 changed files with 4 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue