summaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/codegen_decl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/codegen/codegen_decl.c b/src/codegen/codegen_decl.c
index 8ada7d6..932420f 100644
--- a/src/codegen/codegen_decl.c
+++ b/src/codegen/codegen_decl.c
@@ -853,6 +853,13 @@ void emit_impl_vtables(ParserContext *ctx, FILE *out)
emitted[count].strct = strct;
count++;
+ if (0 == strcmp(trait, "Copy"))
+ {
+ // Marker trait, no runtime vtable needed
+ ref = ref->next;
+ continue;
+ }
+
fprintf(out, "%s_VTable %s_%s_VTable = {", trait, strct, trait);
ASTNode *m = node->impl_trait.methods;