diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-04-09 08:55:53 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-04-09 08:55:53 -0700 |
| commit | 7a05e18efb35330475e7ee6253f9fec6103c560f (patch) | |
| tree | 6f2f2d193a186b830caf968b60abb71843092965 /src/analyze.cpp | |
| parent | d5d6c93da41b47f483e250b212e1d4459a962893 (diff) | |
| download | zig-7a05e18efb35330475e7ee6253f9fec6103c560f.tar.gz zig-7a05e18efb35330475e7ee6253f9fec6103c560f.zip | |
implement @err_name builtin function
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index cffe076c9f..0ec07c8ac2 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -454,7 +454,7 @@ static void slice_type_common_init(CodeGen *g, TypeTableEntry *child_type, entry->data.structure.fields[1].gen_index = 1; } -static TypeTableEntry *get_slice_type(CodeGen *g, TypeTableEntry *child_type, bool is_const) { +TypeTableEntry *get_slice_type(CodeGen *g, TypeTableEntry *child_type, bool is_const) { assert(child_type->id != TypeTableEntryIdInvalid); TypeTableEntry **parent_pointer = &child_type->unknown_size_array_parent[(is_const ? 1 : 0)]; |
