aboutsummaryrefslogtreecommitdiff
path: root/src/types.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-05-27 18:23:37 +0100
committergingerBill <bill@gingerbill.org>2020-05-27 18:23:37 +0100
commit1a0614b0d7f4b6010d79ac0a402d3c4c1f389529 (patch)
treeaeee6f81470fe8f9ed0d918008272ed081a099bd /src/types.cpp
parent876820789e9dedaa6198c4cd145702485e3bd21c (diff)
Improve performance of tokenization and parsing
Diffstat (limited to 'src/types.cpp')
-rw-r--r--src/types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 274ad2ced..3a0613b2c 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -770,7 +770,7 @@ void set_base_type(Type *t, Type *base) {
Type *alloc_type(TypeKind kind) {
gbAllocator a = heap_allocator();
Type *t = gb_alloc_item(a, Type);
- gb_zero_item(t);
+ zero_item(t);
t->kind = kind;
t->cached_size = -1;
t->cached_align = -1;