aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/codegen.cpp
diff options
context:
space:
mode:
authorgingerBill <bill+github@gingerbill.org>2016-08-12 17:21:34 +0100
committergingerBill <bill+github@gingerbill.org>2016-08-12 17:21:34 +0100
commitc10b46af9feb76a9839efa292c5288ec4684055e (patch)
tree47ed229ba31638767264a781121a343323ddfb00 /src/codegen/codegen.cpp
parent84f2bcd885296433a4ccf2188639b377293306e4 (diff)
Compound Literals - struct, array, slice, vector
Diffstat (limited to 'src/codegen/codegen.cpp')
-rw-r--r--src/codegen/codegen.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/codegen/codegen.cpp b/src/codegen/codegen.cpp
index 678013385..c530b350b 100644
--- a/src/codegen/codegen.cpp
+++ b/src/codegen/codegen.cpp
@@ -60,7 +60,8 @@ void ssa_gen_code(ssaGen *s) {
switch (e->kind) {
case Entity_TypeName: {
- ssaValue *t = ssa_make_value_type_name(a, e);
+ ssaValue *t = ssa_make_value_type_name(a, e->token.string, e->type);
+ map_set(&m->values, hash_pointer(e), t);
map_set(&m->members, hash_string(name), t);
} break;