aboutsummaryrefslogtreecommitdiff
path: root/src/link.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-05-08 16:52:59 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-06-10 20:42:30 -0700
commit275652f620541919087bc92da0d2f9e97c66d3c0 (patch)
tree0b19398252ef29e6b0a6c6758ac90f564a235f13 /src/link.zig
parente94a81c951905a6b5bcf2a6028589ac1e33d1edd (diff)
downloadzig-275652f620541919087bc92da0d2f9e97c66d3c0.tar.gz
zig-275652f620541919087bc92da0d2f9e97c66d3c0.zip
stage2: move opaque types to InternPool
Diffstat (limited to 'src/link.zig')
-rw-r--r--src/link.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/link.zig b/src/link.zig
index 471b26ae9f..ac764f06f8 100644
--- a/src/link.zig
+++ b/src/link.zig
@@ -1129,8 +1129,8 @@ pub const File = struct {
Type.anyerror };
}
- pub fn getDecl(self: LazySymbol) Module.Decl.OptionalIndex {
- return Module.Decl.OptionalIndex.init(self.ty.getOwnerDeclOrNull());
+ pub fn getDecl(self: LazySymbol, mod: *Module) Module.Decl.OptionalIndex {
+ return Module.Decl.OptionalIndex.init(self.ty.getOwnerDeclOrNull(mod));
}
};