Fix CompositeType for zero length arrays

This commit is contained in:
gingerBill
2018-10-29 12:52:41 +00:00
parent dfd7a194ed
commit 7c99884afb
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -558,6 +558,9 @@ void init_universal(void) {
add_global_entity(alloc_entity_nil(str_lit("nil"), t_untyped_nil));
// TODO(bill): Set through flags in the compiler
add_global_string_constant(str_lit("ODIN_OS"), bc->ODIN_OS);
add_global_string_constant(str_lit("ODIN_ARCH"), bc->ODIN_ARCH);
add_global_string_constant(str_lit("ODIN_ENDIAN"), bc->ODIN_ENDIAN);
add_global_string_constant(str_lit("ODIN_VENDOR"), bc->ODIN_VENDOR);
add_global_string_constant(str_lit("ODIN_VERSION"), bc->ODIN_VERSION);
add_global_string_constant(str_lit("ODIN_ROOT"), bc->ODIN_ROOT);