aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorMichael Dusan <michael.dusan@gmail.com>2019-11-25 19:19:32 -0500
committerGitHub <noreply@github.com>2019-11-25 19:19:32 -0500
commit6b7e1085e38878419547ea74f0ce7259636b80b8 (patch)
tree453be0063701daa889aa4b29d54cb93a89f4c336 /src/analyze.cpp
parentfe254ea309f7e95f492d8c8e706c73267082b5a3 (diff)
parent6c89f96df1484fc5017eb484f0f8270ab4be341f (diff)
downloadzig-6b7e1085e38878419547ea74f0ce7259636b80b8.tar.gz
zig-6b7e1085e38878419547ea74f0ce7259636b80b8.zip
Merge pull request #3774 from mikdusan/stage1-intern-housekeeping
stage1: consolodate interning
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index e1b086059b..894b2416f1 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -5648,7 +5648,7 @@ void init_const_str_lit(CodeGen *g, ZigValue *const_val, Buf *str) {
// first we build the underlying array
ZigValue *array_val = create_const_vals(1);
array_val->special = ConstValSpecialStatic;
- array_val->type = get_array_type(g, g->builtin_types.entry_u8, buf_len(str), &g->const_zero_byte);
+ array_val->type = get_array_type(g, g->builtin_types.entry_u8, buf_len(str), g->intern.for_zero_byte());
array_val->data.x_array.special = ConstArraySpecialBuf;
array_val->data.x_array.data.s_buf = str;