summaryrefslogtreecommitdiff
path: root/copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'copy.c')
-rw-r--r--copy.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/copy.c b/copy.c
index f691d18..227f3e1 100644
--- a/copy.c
+++ b/copy.c
@@ -10,6 +10,13 @@ static void copy_decl(Copier *c, Declaration *out, Declaration *in);
static void copy_block(Copier *c, Block *out, Block *in);
static void copy_type(Copier *c, Type *out, Type *in);
+static Copier copier_create(Allocator *a, Block *b) {
+ Copier c;
+ c.allocr = a;
+ c.block = b;
+ return c;
+}
+
static void copy_val(Allocator *a, Value *out, Value *in, Type *t) {
assert(t->flags & TYPE_IS_RESOLVED);
switch (t->kind) {