mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-25 15:05:00 -07:00
Remove dead code; fix referencing of a type assertion in a selector expression
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user