mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
riscv: update builtin names
This commit is contained in:
parent
2cbd8e1deb
commit
190e7d0239
@ -1766,8 +1766,8 @@ fn airStructFieldVal(self: *Self, inst: Air.Inst.Index) !void {
|
||||
if (!field_ty.hasRuntimeBitsIgnoreComptime(mod)) break :result .none;
|
||||
|
||||
const field_off: u32 = switch (struct_ty.containerLayout(mod)) {
|
||||
.Auto, .Extern => @intCast(struct_ty.structFieldOffset(index, mod) * 8),
|
||||
.Packed => if (mod.typeToStruct(struct_ty)) |struct_type|
|
||||
.auto, .@"extern" => @intCast(struct_ty.structFieldOffset(index, mod) * 8),
|
||||
.@"packed" => if (mod.typeToStruct(struct_ty)) |struct_type|
|
||||
mod.structPackedFieldBitOffset(struct_type, index)
|
||||
else
|
||||
0,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user