diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-05-26 16:04:53 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-06-10 20:47:55 -0700 |
| commit | 9cd0ca9f482ef7f76d3f3ca683913e9aceaa47fe (patch) | |
| tree | 86e9cfb93f1cf8b68aebc83877bef7c24aed47a6 /src/link/SpirV.zig | |
| parent | d5f0ee0d62e48e623625779a0cf722c3f0f66921 (diff) | |
| download | zig-9cd0ca9f482ef7f76d3f3ca683913e9aceaa47fe.tar.gz zig-9cd0ca9f482ef7f76d3f3ca683913e9aceaa47fe.zip | |
Module: rename functions to make ownership checks explicit
This makes the difference between `decl.getOwnedFunction` and
`decl.val.getFunction` more clear when reading the code.
Diffstat (limited to 'src/link/SpirV.zig')
| -rw-r--r-- | src/link/SpirV.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/SpirV.zig b/src/link/SpirV.zig index 0a6608303e..89d6be1ec8 100644 --- a/src/link/SpirV.zig +++ b/src/link/SpirV.zig @@ -138,7 +138,7 @@ pub fn updateDeclExports( exports: []const *Module.Export, ) !void { const decl = mod.declPtr(decl_index); - if (decl.getFunctionIndex(mod) != .none and decl.ty.fnCallingConvention(mod) == .Kernel) { + if (decl.val.getFunctionIndex(mod) != .none 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) { |
