diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-06-20 14:02:04 -0400 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2023-06-20 14:02:09 -0400 |
| commit | 96cdd51c14337b012910a36ba93121a371509cfd (patch) | |
| tree | 9b75389283a2446a2fbc6450e5755faae6410851 /src/codegen/spirv.zig | |
| parent | 52ec121469d7bf10116fb22c122cbce8ceddd028 (diff) | |
| download | zig-96cdd51c14337b012910a36ba93121a371509cfd.tar.gz zig-96cdd51c14337b012910a36ba93121a371509cfd.zip | |
Type: delete legacy allocation functions
Diffstat (limited to 'src/codegen/spirv.zig')
| -rw-r--r-- | src/codegen/spirv.zig | 8 |
1 files changed, 4 insertions, 4 deletions
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)), ); } } |
