aboutsummaryrefslogtreecommitdiff
path: root/src/types.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-05-09 12:05:17 +0100
committerGinger Bill <bill@gingerbill.org>2017-05-09 12:05:17 +0100
commit8677c81da7ca8af37c49a203a18fd7beab74f023 (patch)
tree621f6728ac747560209c5a8078f831169499295f /src/types.c
parent5595daf5a39306179bb924f0c778bbba284391ec (diff)
Fix ir bug; allow formatting options for arrays & et al.
Diffstat (limited to 'src/types.c')
-rw-r--r--src/types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.c b/src/types.c
index e363c6b2c..c67dc11ef 100644
--- a/src/types.c
+++ b/src/types.c
@@ -1763,7 +1763,7 @@ i64 type_size_of_internal(gbAllocator allocator, Type *t, TypePath *path) {
} break;
case Type_Basic: {
- GB_ASSERT(is_type_typed(t));
+ GB_ASSERT_MSG(is_type_typed(t), "%s", type_to_string(t));
BasicKind kind = t->Basic.kind;
i64 size = t->Basic.size;
if (size > 0) {