aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/codegen.cpp
diff options
context:
space:
mode:
authorgingerBill <ginger.bill.22@gmail.com>2016-08-02 20:53:18 +0100
committergingerBill <ginger.bill.22@gmail.com>2016-08-02 20:53:18 +0100
commit41e7cadb8df4b9833bc3dd827cac32fd3b01ddbd (patch)
tree81272c3361a9f19e97caa8a760553b3e700b31bc /src/codegen/codegen.cpp
parentbf3283c889ce387fd252b48e12e090fab7446048 (diff)
ret, unreachable, param, deref
Diffstat (limited to 'src/codegen/codegen.cpp')
-rw-r--r--src/codegen/codegen.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/codegen/codegen.cpp b/src/codegen/codegen.cpp
index 94ccabe0f..7e9397580 100644
--- a/src/codegen/codegen.cpp
+++ b/src/codegen/codegen.cpp
@@ -36,6 +36,7 @@ void ssa_gen_code(ssaGen *s) {
ssaModule *m = &s->module;
CheckerInfo *info = m->info;
gbAllocator a = m->allocator;
+
gb_for_array(i, info->entities.entries) {
auto *entry = &info->entities.entries[i];
Entity *e = cast(Entity *)cast(uintptr)entry->key;
@@ -66,8 +67,8 @@ void ssa_gen_code(ssaGen *s) {
gb_for_array(i, m->members.entries) {
auto *entry = &m->members.entries[i];
ssaValue *v = entry->value;
- if (v->kind == ssaValue_Procedure)
- ssa_build_procedure(v);
+ if (v->kind == ssaValue_Proc)
+ ssa_build_proc(v);
}
ssa_print_llvm_ir(&s->output_file, &s->module);