aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-05-06 15:31:18 +0100
committergingerBill <bill@gingerbill.org>2018-05-06 15:31:18 +0100
commit66b4252931a152a40c3713d0ec96348ae9762444 (patch)
tree1d0797b1f8a762374ea329e241f57dbc42561c81 /src/ir_print.cpp
parentfc77b5b4accb8b23c6ecc0a0067b965ba74f6650 (diff)
Fix #210
Diffstat (limited to 'src/ir_print.cpp')
-rw-r--r--src/ir_print.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp
index 4f5058b44..f8adc1e38 100644
--- a/src/ir_print.cpp
+++ b/src/ir_print.cpp
@@ -680,6 +680,7 @@ void ir_print_exact_value(irFileBuffer *f, irModule *m, ExactValue value, Type *
}
break;
}
+ GB_ASSERT_MSG(elem_count == type->Array.count, "%td != %td", elem_count, type->Array.count);
ir_write_byte(f, '[');