aboutsummaryrefslogtreecommitdiff
path: root/src/checker/type.cpp
diff options
context:
space:
mode:
authorgingerBill <ginger.bill.22@gmail.com>2016-08-14 22:19:39 +0100
committergingerBill <ginger.bill.22@gmail.com>2016-08-14 22:19:39 +0100
commit0f48a7d299a80c2e461bdcf5b37b5f624a48d7e8 (patch)
tree09132199d7777f3f31623505e9867468d3f487d8 /src/checker/type.cpp
parent0edae8c8482dd4763737b01deb09a4732a2f35ec (diff)
#foreign "custom_name"; <N x i1> bugs (see test.ll and test2.ll)
Diffstat (limited to 'src/checker/type.cpp')
-rw-r--r--src/checker/type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checker/type.cpp b/src/checker/type.cpp
index 4504cd06f..e0ce88c03 100644
--- a/src/checker/type.cpp
+++ b/src/checker/type.cpp
@@ -560,7 +560,7 @@ i64 type_align_of(BaseTypeSizes s, gbAllocator allocator, Type *t) {
case Type_Vector: {
i64 size = type_size_of(s, allocator, t->vector.elem);
// TODO(bill): Type_Vector type_align_of
- return gb_clamp(size, 1, 2*s.max_align);
+ return gb_clamp(size, s.max_align, 2*s.max_align);
} break;
case Type_Structure: {