diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-06-26 14:39:51 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-06-26 14:39:51 +0100 |
| commit | d974b29f67ea536e1da033e41f3b03e05696f438 (patch) | |
| tree | 7751caf06ea907312e24bccb958d486b7298432b /src/checker.cpp | |
| parent | cc7316bb353db4f32e6bc3f25c6f505224ec9f55 (diff) | |
Reduce excessive node cloning on para-poly checking and fix scope bug
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 8d0ae001c..a7e3aa524 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -387,9 +387,9 @@ Scope *make_scope(Scope *parent, gbAllocator allocator) { Scope *s = gb_alloc_item(allocator, Scope); s->parent = parent; map_init(&s->elements, heap_allocator()); - map_init(&s->implicit, heap_allocator()); - array_init(&s->shared, heap_allocator()); - array_init(&s->imported, heap_allocator()); + map_init(&s->implicit, heap_allocator()); + array_init(&s->shared, heap_allocator()); + array_init(&s->imported, heap_allocator()); if (parent != NULL && parent != universal_scope) { DLIST_APPEND(parent->first_child, parent->last_child, s); |