aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv/Module.zig
diff options
context:
space:
mode:
authorRobin Voetter <robin@voetter.nl>2023-10-22 22:17:50 +0200
committerAndrew Kelley <andrew@ziglang.org>2023-10-23 06:27:12 -0400
commit4bf27da6a6f6cf476ca907dd661c0c40c7c68286 (patch)
tree4958c6b354d0c134ceb13363027f11424779c528 /src/codegen/spirv/Module.zig
parent6bf554f9a75b412f3d1f2306dff8c0036555f08c (diff)
downloadzig-4bf27da6a6f6cf476ca907dd661c0c40c7c68286.tar.gz
zig-4bf27da6a6f6cf476ca907dd661c0c40c7c68286.zip
Revert "Revert "Merge pull request #17657 from Snektron/spirv-recursive-ptrs""
This reverts commit 9f0359d78f9facc38418e32b0e8c1bf6f99f0d26 in an attempt to make the tests pass again. The CI failure from that merge should be unrelated to this commit.
Diffstat (limited to 'src/codegen/spirv/Module.zig')
-rw-r--r--src/codegen/spirv/Module.zig11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/codegen/spirv/Module.zig b/src/codegen/spirv/Module.zig
index 1936b78826..4ecbc8d7a0 100644
--- a/src/codegen/spirv/Module.zig
+++ b/src/codegen/spirv/Module.zig
@@ -507,17 +507,6 @@ pub fn arrayType(self: *Module, len: u32, elem_ty_ref: CacheRef) !CacheRef {
} });
}
-pub fn ptrType(
- self: *Module,
- child: CacheRef,
- storage_class: spec.StorageClass,
-) !CacheRef {
- return try self.resolve(.{ .ptr_type = .{
- .storage_class = storage_class,
- .child_type = child,
- } });
-}
-
pub fn constInt(self: *Module, ty_ref: CacheRef, value: anytype) !IdRef {
const ty = self.cache.lookup(ty_ref).int_type;
const Value = Cache.Key.Int.Value;