summaryrefslogtreecommitdiff
path: root/src/hir/expr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir/expr.cpp')
-rw-r--r--src/hir/expr.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/hir/expr.cpp b/src/hir/expr.cpp
index 31493a3d..a1bd5e9f 100644
--- a/src/hir/expr.cpp
+++ b/src/hir/expr.cpp
@@ -118,7 +118,10 @@ DEF_VISIT(ExprNode_ArraySized, node,
)
DEF_VISIT(ExprNode_Closure, node,
- visit_node_ptr(node.m_code);
+ if(node.m_code)
+ {
+ visit_node_ptr(node.m_code);
+ }
)
#undef DEF_VISIT