aboutsummaryrefslogtreecommitdiff
path: root/src/link/SpirV.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-05-15 20:09:54 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-06-10 20:47:53 -0700
commit17882162b3be5542b4e289e5ddc6535a4bb4c6b1 (patch)
tree678a9762bd5894e487ff808562eba690918c23ba /src/link/SpirV.zig
parent6a9a918fbe4adc23dd7d7573c6f1e499f4be074e (diff)
downloadzig-17882162b3be5542b4e289e5ddc6535a4bb4c6b1.tar.gz
zig-17882162b3be5542b4e289e5ddc6535a4bb4c6b1.zip
stage2: move function types to InternPool
Diffstat (limited to 'src/link/SpirV.zig')
-rw-r--r--src/link/SpirV.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/link/SpirV.zig b/src/link/SpirV.zig
index fbdcbd5a8e..da25753b95 100644
--- a/src/link/SpirV.zig
+++ b/src/link/SpirV.zig
@@ -131,12 +131,12 @@ pub fn updateDecl(self: *SpirV, module: *Module, decl_index: Module.Decl.Index)
pub fn updateDeclExports(
self: *SpirV,
- module: *Module,
+ mod: *Module,
decl_index: Module.Decl.Index,
exports: []const *Module.Export,
) !void {
- const decl = module.declPtr(decl_index);
- if (decl.val.tag() == .function and decl.ty.fnCallingConvention() == .Kernel) {
+ const decl = mod.declPtr(decl_index);
+ if (decl.val.tag() == .function and decl.ty.fnCallingConvention(mod) == .Kernel) {
// TODO: Unify with resolveDecl in spirv.zig.
const entry = try self.decl_link.getOrPut(decl_index);
if (!entry.found_existing) {