aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-12-14 18:36:06 +0000
committergingerBill <bill@gingerbill.org>2018-12-14 18:36:06 +0000
commitb7eebe5d004380dec34a185bca6e5e343589de69 (patch)
tree6e9b74c045c4c2d3880b25945291703a5f70eeac /src/ir_print.cpp
parent57d4333ed3a36778a034f144a6998587d61ed831 (diff)
Fix polymorphic record types with constant value parameters
Diffstat (limited to 'src/ir_print.cpp')
-rw-r--r--src/ir_print.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp
index eadd091bd..457fc57a7 100644
--- a/src/ir_print.cpp
+++ b/src/ir_print.cpp
@@ -2437,7 +2437,8 @@ void print_llvm_ir(irGen *ir) {
case irDebugInfo_DerivedType: {
if (di->DerivedType.tag == irDebugBasicEncoding_member) {
// NOTE(lachsinc): We crash llvm super hard if we don't specify a name :)
- GB_ASSERT(di->DerivedType.name.len > 0);
+ Type *t = di->DerivedType.type;
+ GB_ASSERT_MSG(di->DerivedType.name.len > 0, "%s", type_to_string(di->DerivedType.type));
}
ir_write_str_lit(f, "!DIDerivedType(tag: ");
ir_print_debug_encoding(f, irDebugInfo_DerivedType, di->DerivedType.tag);