aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index 1f66f41b17..2a10ebcef1 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -2688,6 +2688,7 @@ static TypeTableEntry *analyze_field_access_expr(CodeGen *g, ImportTableEntry *i
return node->data.field_access_expr.type_struct_field->type_entry;
} else if (wrapped_in_fn_call) {
BlockContext *container_block_context = get_container_block_context(bare_struct_type);
+ assert(container_block_context);
auto entry = container_block_context->decl_table.maybe_get(field_name);
AstNode *fn_decl_node = entry ? entry->value : nullptr;
if (fn_decl_node && fn_decl_node->type == NodeTypeFnProto) {