diff options
| author | gingerBill <bill@gingerbill.org> | 2018-03-04 09:25:02 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-03-04 09:25:02 +0000 |
| commit | 584dffea1420b1e2ce98922f8dd5cf63e5fb8872 (patch) | |
| tree | e06a3a30fe31a90c2fcb77eb0fa4667d138f86ff /src/types.cpp | |
| parent | 41b6d215bb381ecb4190acd8cbde481442b7ab85 (diff) | |
Remove dead code; fix referencing of a type assertion in a selector expression
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.cpp b/src/types.cpp index 7db0f94a7..60eb39403 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -2245,7 +2245,7 @@ i64 type_offset_of(gbAllocator allocator, Type *t, i32 index) { case 3: return 3*build_context.word_size; // allocator } } else if (t->kind == Type_Union) { - i64 s = type_size_of(allocator, t); + /* i64 s = */ type_size_of(allocator, t); switch (index) { case -1: return align_formula(t->Union.variant_block_size, build_context.word_size); // __type_info } |