spirv: lower integer pointer constants

This commit is contained in:
Robin Voetter 2023-05-18 22:36:30 +02:00
parent 64f99f36a6
commit 4203d099be
No known key found for this signature in database
GPG Key ID: E755662F227CB468

View File

@ -726,6 +726,10 @@ pub const DeclGen = struct {
try self.lower(ptr_ty, slice.ptr);
try self.addInt(Type.usize, slice.len);
},
.null_value, .zero => try self.addNullPtr(try dg.resolveType(ty, .indirect)),
.int_u64, .one, .int_big_positive, .lazy_align, .lazy_size => {
try self.addInt(Type.usize, val);
},
else => |tag| return dg.todo("pointer value of type {s}", .{@tagName(tag)}),
},
.Struct => {