aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-04-06 11:38:12 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-04-06 12:58:54 -0700
commit67152f729431d58a9cd140498d50c1e9d795c34b (patch)
tree7997511873fe650e71f5efb527103688f62271b3 /src/codegen.cpp
parente144ddab249af3737f04267c7f1f0f0e093ed314 (diff)
downloadzig-67152f729431d58a9cd140498d50c1e9d795c34b.tar.gz
zig-67152f729431d58a9cd140498d50c1e9d795c34b.zip
support simple generic functions
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 49d257b6d8..fc7c036061 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -62,6 +62,7 @@ CodeGen *codegen_create(Buf *root_source_dir, const ZigTarget *target) {
g->primitive_type_table.init(32);
g->fn_type_table.init(32);
g->error_table.init(16);
+ g->generic_table.init(16);
g->is_release_build = false;
g->is_test_build = false;
g->error_value_count = 1;
@@ -2927,6 +2928,7 @@ static LLVMValueRef gen_const_val(CodeGen *g, TypeTableEntry *type_entry, ConstE
case TypeTableEntryIdUndefLit:
case TypeTableEntryIdVoid:
case TypeTableEntryIdNamespace:
+ case TypeTableEntryIdGenericFn:
zig_unreachable();
}