aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-11-17 23:06:28 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-11-21 20:43:41 -0500
commit21f344b3b903b41fd4793faa82a4ac26ad2544aa (patch)
tree713437712564e80b512629fa657da5f7cb56730b /src/codegen.cpp
parent1aa978f32e88b4c83fde95f62938c97c7c22164c (diff)
downloadzig-21f344b3b903b41fd4793faa82a4ac26ad2544aa.tar.gz
zig-21f344b3b903b41fd4793faa82a4ac26ad2544aa.zip
add null terminated pointers and arrays to self-hosted
as well as `@typeInfo` and `@Type`
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index a288f397fd..5def04575e 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -7465,7 +7465,7 @@ static void do_code_gen(CodeGen *g) {
!is_async && !have_err_ret_trace_arg;
LLVMValueRef err_ret_array_val = nullptr;
if (have_err_ret_trace_stack) {
- ZigType *array_type = get_array_type(g, g->builtin_types.entry_usize, stack_trace_ptr_count);
+ ZigType *array_type = get_array_type(g, g->builtin_types.entry_usize, stack_trace_ptr_count, false);
err_ret_array_val = build_alloca(g, array_type, "error_return_trace_addresses", get_abi_alignment(g, array_type));
(void)get_llvm_type(g, get_stack_trace_type(g));
@@ -9067,7 +9067,7 @@ static void create_test_compile_var_and_add_test_runner(CodeGen *g) {
zig_unreachable();
ConstExprValue *test_fn_array = create_const_vals(1);
- test_fn_array->type = get_array_type(g, struct_type, g->test_fns.length);
+ test_fn_array->type = get_array_type(g, struct_type, g->test_fns.length, false);
test_fn_array->special = ConstValSpecialStatic;
test_fn_array->data.x_array.data.s_none.elements = create_const_vals(g->test_fns.length);