From 96cdd51c14337b012910a36ba93121a371509cfd Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Tue, 20 Jun 2023 14:02:04 -0400 Subject: Type: delete legacy allocation functions --- src/codegen/spirv.zig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/codegen/spirv.zig') diff --git a/src/codegen/spirv.zig b/src/codegen/spirv.zig index 46ef5609db..3b95fe8968 100644 --- a/src/codegen/spirv.zig +++ b/src/codegen/spirv.zig @@ -1210,13 +1210,13 @@ pub const DeclGen = struct { .Pointer => { const ptr_info = ty.ptrInfo(mod); - const storage_class = spvStorageClass(ptr_info.@"addrspace"); - const child_ty_ref = try self.resolveType(ptr_info.pointee_type, .indirect); + const storage_class = spvStorageClass(ptr_info.flags.address_space); + const child_ty_ref = try self.resolveType(ptr_info.child.toType(), .indirect); const ptr_ty_ref = try self.spv.resolve(.{ .ptr_type = .{ .storage_class = storage_class, .child_type = child_ty_ref, } }); - if (ptr_info.size != .Slice) { + if (ptr_info.flags.size != .Slice) { return ptr_ty_ref; } @@ -1573,7 +1573,7 @@ pub const DeclGen = struct { init_val, actual_storage_class, final_storage_class == .Generic, - decl.@"align", + @intCast(u32, decl.alignment.toByteUnits(0)), ); } } -- cgit v1.2.3