mirror of
https://github.com/ziglang/zig.git
synced 2026-02-02 20:53:44 +00:00
Sema: handle Value.slice in beginComptimePtrLoad
This commit is contained in:
parent
3e80aa9079
commit
eef6539049
@ -25190,6 +25190,11 @@ fn beginComptimePtrLoad(
|
||||
break :blk deref;
|
||||
},
|
||||
|
||||
.slice => blk: {
|
||||
const slice = ptr_val.castTag(.slice).?.data;
|
||||
break :blk try beginComptimePtrLoad(sema, block, src, slice.ptr, null);
|
||||
},
|
||||
|
||||
.field_ptr => blk: {
|
||||
const field_ptr = ptr_val.castTag(.field_ptr).?.data;
|
||||
const field_index = @intCast(u32, field_ptr.field_index);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user