diff options
| author | gingerBill <bill@gingerbill.org> | 2018-10-29 12:52:41 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-10-29 12:52:41 +0000 |
| commit | 7c99884afb90370e79429fd9b719482dd416acf5 (patch) | |
| tree | 7912a67007540c08913d6dae06ce47259c8f9a75 /src/ir_print.cpp | |
| parent | dfd7a194ed042083db93826b7fbc88d43290ed05 (diff) | |
Fix CompositeType for zero length arrays
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index 177ae0aa1..aca2fdeac 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -2374,9 +2374,9 @@ void print_llvm_ir(irGen *ir) { case irDebugInfo_CompositeType: { if (di->CompositeType.tag == irDebugBasicEncoding_array_type) { GB_ASSERT_NOT_NULL(di->CompositeType.base_type); - GB_ASSERT(di->CompositeType.array_count > 0); + GB_ASSERT(di->CompositeType.array_count >= 0); GB_ASSERT(di->CompositeType.name.len == 0); - GB_ASSERT(di->CompositeType.size > 0); + GB_ASSERT(di->CompositeType.size >= 0); } if (di->CompositeType.tag == irDebugBasicEncoding_union_type) { |