diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-06-06 00:39:39 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-06-06 00:39:39 -0400 |
| commit | d3693dca73dfc726aed32908691437abe614e5cf (patch) | |
| tree | 167e2d8c24c6a653f05723716b796949a0eb5585 /src/analyze.cpp | |
| parent | 76c8efd56c84c189a52d3dc559fff109d5d34ce4 (diff) | |
| download | zig-d3693dca73dfc726aed32908691437abe614e5cf.tar.gz zig-d3693dca73dfc726aed32908691437abe614e5cf.zip | |
Pointer Reform: update @typeInfo
* add assertion for trying to do @typeInfo on global error set
* remove TypeInfo.Slice
* add TypeInfo.Pointer.Size with possible values
- One
- Many
- Slice
See #770
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 15f08aa3fe..93373f6ec2 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -5981,7 +5981,7 @@ size_t type_id_index(TypeTableEntry *entry) { return 7; case TypeTableEntryIdStruct: if (entry->data.structure.is_slice) - return 25; + return 6; return 8; case TypeTableEntryIdComptimeFloat: return 9; |
