aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-04-17 16:20:50 +0100
committergingerBill <bill@gingerbill.org>2020-04-17 16:20:50 +0100
commitaa620e8ea12123ea06eefb63f13ec772735a2904 (patch)
tree4d2c2ddf162f14874e9939b0e97617a4329a86d9
parent1addee32b5b9ecc272ed61537e3f0adf10060f4e (diff)
Fix Procedure value printing in ir.cpp
-rw-r--r--src/ir_print.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp
index 2d5a2e1dd..591fdc420 100644
--- a/src/ir_print.cpp
+++ b/src/ir_print.cpp
@@ -1287,8 +1287,7 @@ void ir_print_exact_value(irFileBuffer *f, irModule *m, ExactValue value, Type *
if (expr->kind == Ast_ProcLit) {
found = map_get(&m->anonymous_proc_lits, hash_pointer(expr));
} else {
- GB_ASSERT(expr->kind == Ast_Ident);
- Entity *e = entity_of_ident(expr);
+ Entity *e = strip_entity_wrapping(expr);
GB_ASSERT(e != nullptr);
found = map_get(&m->values, hash_entity(e));
}