diff options
| author | Michael Dusan <michael.dusan@gmail.com> | 2019-10-05 15:47:07 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-05 15:47:07 -0400 |
| commit | a82c6453c1553ce89ec24803d4192030639d79ab (patch) | |
| tree | 22c39cef84328674b4f6a266d07d6e3edbff7246 /src/ir.cpp | |
| parent | edadccde549b99305882e795e44672a9f41be037 (diff) | |
| parent | a23a022820d24f660b314457e1984ceb2586e109 (diff) | |
| download | zig-a82c6453c1553ce89ec24803d4192030639d79ab.tar.gz zig-a82c6453c1553ce89ec24803d4192030639d79ab.zip | |
Merge pull request #3368 from mikdusan/issue.3367
fix: container member access `usingnamespace` decls fails
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 14adf6fbd6..52b59ddcad 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -17673,8 +17673,7 @@ static IrInstruction *ir_analyze_container_member_access_inner(IrAnalyze *ira, if (!is_slice(bare_struct_type)) { ScopeDecls *container_scope = get_container_scope(bare_struct_type); assert(container_scope != nullptr); - auto entry = container_scope->decl_table.maybe_get(field_name); - Tld *tld = entry ? entry->value : nullptr; + auto tld = find_container_decl(ira->codegen, container_scope, field_name); if (tld) { if (tld->id == TldIdFn) { resolve_top_level_decl(ira->codegen, tld, source_instr->source_node, false); |
