From 1c5ddd65b4f66c4d37bd9da0facb229bbcea22eb Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Thu, 13 Jul 2017 22:35:00 +0100 Subject: Rudimentary support for parametric polymorphic types --- src/ir_print.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ir_print.cpp') diff --git a/src/ir_print.cpp b/src/ir_print.cpp index 7bd79fe2e..c683f4dc6 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -340,7 +340,7 @@ void ir_print_type(irFileBuffer *f, irModule *m, Type *t) { case Type_Named: if (is_type_struct(t) || is_type_union(t)) { String *name = map_get(&m->entity_names, hash_pointer(t->Named.type_name)); - GB_ASSERT_MSG(name != nullptr, "%.*s", LIT(t->Named.name)); + GB_ASSERT_MSG(name != nullptr, "%.*s %p", LIT(t->Named.name), t->Named.type_name); ir_print_encoded_local(f, *name); } else { ir_print_type(f, m, base_type(t)); -- cgit v1.2.3