| ... | ... | @@ -5405,6 +5405,13 @@ fn zirExport(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void |
| 5405 | 5405 | }, |
| 5406 | 5406 | else => |e| return e, |
| 5407 | 5407 | }; |
| 5408 | { |
| 5409 | try sema.mod.ensureDeclAnalyzed(decl_index); |
| 5410 | const exported_decl = sema.mod.declPtr(decl_index); |
| 5411 | if (exported_decl.val.castTag(.function)) |some| { |
| 5412 | return sema.analyzeExport(block, src, options, some.data.owner_decl); |
| 5413 | } |
| 5414 | } |
| 5408 | 5415 | try sema.analyzeExport(block, src, options, decl_index); |
| 5409 | 5416 | } |
| 5410 | 5417 | |