aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir_print.cpp')
-rw-r--r--src/ir_print.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp
index 9a7b1e113..fb09ad471 100644
--- a/src/ir_print.cpp
+++ b/src/ir_print.cpp
@@ -1294,7 +1294,7 @@ void ir_print_exact_value(irFileBuffer *f, irModule *m, ExactValue value, Type *
}
case ExactValue_Procedure: {
irValue **found = nullptr;
- Ast *expr = value.value_procedure;
+ Ast *expr = unparen_expr(value.value_procedure);
GB_ASSERT(expr != nullptr);
if (expr->kind == Ast_ProcLit) {
@@ -1304,7 +1304,7 @@ void ir_print_exact_value(irFileBuffer *f, irModule *m, ExactValue value, Type *
GB_ASSERT(e != nullptr);
found = map_get(&m->values, hash_entity(e));
}
- GB_ASSERT(found != nullptr);
+ GB_ASSERT_MSG(found != nullptr, "%s", expr_to_string(expr));
irValue *val = *found;
ir_print_value(f, m, val, type);
break;