diff options
| author | Martin Wickham <spexguy070@gmail.com> | 2021-09-23 18:09:35 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-09-24 13:49:18 -0400 |
| commit | 1e7009a9d982faa466517063452ed7d299b66966 (patch) | |
| tree | 1d784134a0a81c8292101427bd440cb4c89aa6d4 /src/Sema.zig | |
| parent | 8f58e2d77951cdb046e365394c5f02c9b3a93a4f (diff) | |
| download | zig-1e7009a9d982faa466517063452ed7d299b66966.tar.gz zig-1e7009a9d982faa466517063452ed7d299b66966.zip | |
Fix error references across inline and comptime functions
Diffstat (limited to 'src/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index 2fa12baca6..87cde2ca1a 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -2447,7 +2447,7 @@ fn zirExport(sema: *Sema, block: *Scope.Block, inst: Zir.Inst.Index) CompileErro } const decl = try sema.lookupIdentifier(block, operand_src, decl_name); const options = try sema.resolveExportOptions(block, options_src, extra.options); - try sema.mod.analyzeExport(&block.base, src, options, decl); + try sema.mod.analyzeExport(block, src, options, decl); } fn zirExportValue(sema: *Sema, block: *Scope.Block, inst: Zir.Inst.Index) CompileError!void { @@ -2465,7 +2465,7 @@ fn zirExportValue(sema: *Sema, block: *Scope.Block, inst: Zir.Inst.Index) Compil .function => operand.val.castTag(.function).?.data.owner_decl, else => return sema.mod.fail(&block.base, operand_src, "TODO implement exporting arbitrary Value objects", .{}), // TODO put this Value into an anonymous Decl and then export it. }; - try sema.mod.analyzeExport(&block.base, src, options, decl); + try sema.mod.analyzeExport(block, src, options, decl); } fn zirSetAlignStack(sema: *Sema, block: *Scope.Block, inst: Zir.Inst.Index) CompileError!void { |
