aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-10-12 20:52:19 +0100
committerGinger Bill <bill@gingerbill.org>2017-10-12 20:52:19 +0100
commit26d3c54aff549e7138f2a9c1a3d8355ffc9b3186 (patch)
tree0d4bec339308214be8424bc392ba79c0f0aae949 /src/ir.cpp
parent349a62121c34ec190f080fd516416d5ce13c51f1 (diff)
Fix issue #119
This may need better error messages
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index b171c5134..864375250 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -4639,6 +4639,7 @@ irValue *ir_build_expr(irProcedure *proc, AstNode *expr) {
case_ast_node(i, Ident, expr);
Entity *e = entity_of_ident(proc->module->info, expr);
+ GB_ASSERT_MSG(e != nullptr, "%s", expr_to_string(expr));
if (e->kind == Entity_Builtin) {
Token token = ast_node_token(expr);
GB_PANIC("TODO(bill): ir_build_single_expr Entity_Builtin `%.*s`\n"