mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-13 14:53:34 +00:00
Add nil check on ast.walk
This commit is contained in:
@@ -52,8 +52,11 @@ walk :: proc(v: ^Visitor, node: ^Node) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
v := v
|
||||
if v == nil || node == nil {
|
||||
return
|
||||
}
|
||||
|
||||
if v = v->visit(node); v == nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user