diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-10-12 20:52:19 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-10-12 20:52:19 +0100 |
| commit | 26d3c54aff549e7138f2a9c1a3d8355ffc9b3186 (patch) | |
| tree | 0d4bec339308214be8424bc392ba79c0f0aae949 /src/ir.cpp | |
| parent | 349a62121c34ec190f080fd516416d5ce13c51f1 (diff) | |
Fix issue #119
This may need better error messages
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 1 |
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" |