Browse Source

Fix Procedure value printing in ir.cpp

gingerBill 5 years ago
parent
commit
aa620e8ea1
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/ir_print.cpp

+ 1 - 2
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));
 		}