mirror of
https://github.com/ziglang/zig.git
synced 2026-01-29 10:47:40 +00:00
spirv: lower integer pointer constants
This commit is contained in:
parent
64f99f36a6
commit
4203d099be
@ -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 => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user