diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-05-02 11:27:40 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-05-07 16:52:46 +0200 |
| commit | 58c0abb98d50fa9f2cd1e0ab2ce255430f5d9253 (patch) | |
| tree | 736046f10fac4f5aaa5536028b2fda8c25542020 /src/types.cpp | |
| parent | d93cc18dacf7800972cab91053fc1ed3c68dd34b (diff) | |
revert wrong approach in fixing the load alignment
Diffstat (limited to 'src/types.cpp')
| -rw-r--r-- | src/types.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/types.cpp b/src/types.cpp index 55d083a9a..0c6729b87 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -321,7 +321,6 @@ enum TypeFlag : u32 { TypeFlag_Polymorphic = 1<<1, TypeFlag_PolySpecialized = 1<<2, TypeFlag_InProcessOfCheckingPolymorphic = 1<<3, - TypeFlag_Packed = 1<<4, }; struct Type { @@ -949,7 +948,6 @@ gb_internal void set_base_type(Type *t, Type *base) { } } - gb_internal Type *alloc_type(TypeKind kind) { // gbAllocator a = heap_allocator(); gbAllocator a = permanent_allocator(); @@ -3672,9 +3670,6 @@ gb_internal i64 type_align_of(Type *t) { if (t == nullptr) { return 1; } - if (t->flags & TypeFlag_Packed) { - return 1; - } if (t->kind != Type_Named && t->cached_align > 0) { return t->cached_align.load(); } |