mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 13:30:45 +00:00
Sema: export function instead of the constant referencing it
Closes #13706
This commit is contained in:
parent
92f1a29c40
commit
d078d08e4f
@ -5405,6 +5405,13 @@ fn zirExport(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!void
|
||||
},
|
||||
else => |e| return e,
|
||||
};
|
||||
{
|
||||
try sema.mod.ensureDeclAnalyzed(decl_index);
|
||||
const exported_decl = sema.mod.declPtr(decl_index);
|
||||
if (exported_decl.val.castTag(.function)) |some| {
|
||||
return sema.analyzeExport(block, src, options, some.data.owner_decl);
|
||||
}
|
||||
}
|
||||
try sema.analyzeExport(block, src, options, decl_index);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user