diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2015-12-14 18:10:25 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2015-12-14 18:10:25 -0700 |
| commit | f17e20d5fefeb9ce30a08e85c10b9449cf672112 (patch) | |
| tree | 2907eae05aca64bbab1e7ca0c9c526c1f204848d /src/analyze.cpp | |
| parent | 7dd29291853a30973c19867385514b6d807cb644 (diff) | |
| download | zig-f17e20d5fefeb9ce30a08e85c10b9449cf672112.tar.gz zig-f17e20d5fefeb9ce30a08e85c10b9449cf672112.zip | |
instead of *mut and *const, & and &const
closes #33
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 b966cb4e30..ed6379f389 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -111,7 +111,7 @@ TypeTableEntry *get_pointer_to_type(CodeGen *g, TypeTableEntry *child_type, bool TypeTableEntry *entry = new_type_table_entry(TypeTableEntryIdPointer); entry->type_ref = LLVMPointerType(child_type->type_ref, 0); buf_resize(&entry->name, 0); - buf_appendf(&entry->name, "*%s %s", is_const ? "const" : "mut", buf_ptr(&child_type->name)); + buf_appendf(&entry->name, "&%s%s", is_const ? "const " : "", buf_ptr(&child_type->name)); entry->size_in_bits = g->pointer_size_bytes * 8; entry->align_in_bits = g->pointer_size_bytes * 8; entry->di_type = LLVMZigCreateDebugPointerType(g->dbuilder, child_type->di_type, |
