diff options
| author | Martin Wickham <spexguy070@gmail.com> | 2021-10-01 00:42:50 -0500 |
|---|---|---|
| committer | Martin Wickham <spexguy070@gmail.com> | 2021-10-02 15:21:48 -0500 |
| commit | f7c11acb7f487806b14ada9d13d6afe8d3fe54d5 (patch) | |
| tree | 834666b13ed58fc9fbf25b2a9aec82ce4737fe0b /src/Module.zig | |
| parent | 806eee8e99fbbd86f01b62b4306bd48f1cd3c872 (diff) | |
| download | zig-f7c11acb7f487806b14ada9d13d6afe8d3fe54d5.tar.gz zig-f7c11acb7f487806b14ada9d13d6afe8d3fe54d5.zip | |
Resolve struct fields in a separate sema context
Diffstat (limited to 'src/Module.zig')
| -rw-r--r-- | src/Module.zig | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/Module.zig b/src/Module.zig index 60dea31d18..a2b22e4c17 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -3584,12 +3584,6 @@ fn semaDecl(mod: *Module, decl: *Decl) !bool { try mod.comp.work_queue.writeItem(.{ .emit_h_decl = decl }); } } - // In case this Decl is a struct or union, we need to resolve the fields - // while we still have the `Sema` in scope, so that the field type expressions - // can use the resolved AIR instructions that they possibly reference. - // We do this after the decl is populated and set to `complete` so that a `Decl` - // may reference itself. - try sema.resolvePendingTypes(&block_scope); if (decl.is_exported) { const export_src = src; // TODO point to the export token |
