summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index c9867d5..4f733f6 100644
--- a/parse.c
+++ b/parse.c
@@ -3079,6 +3079,13 @@ static inline void construct_resolved_builtin_type(Type *t, BuiltinType builtin)
t->flags = TYPE_IS_RESOLVED;
}
+static inline void construct_resolved_slice_of_builtin(Allocator *a, Type *t, BuiltinType builtin) {
+ t->kind = TYPE_SLICE;
+ t->flags = TYPE_IS_RESOLVED;
+ t->slice = allocr_malloc(a, sizeof *t->slice);
+ construct_resolved_builtin_type(t->slice, builtin);
+}
+
#ifndef TOC_DEBUG
static
#endif