| author | |
| committer | |
| log | 1f823eecdd071f619c761a743119f1a2a89af1bf |
| tree | 1af4f2c80c39c394cd0695cbe88b919160792a0f |
| parent | 1417698c111e7f75d1c6959c7af8cd1a4d5231f6 |
3 files changed, 3 insertions(+), 3 deletions(-)
src/Liveness.zig+1-1| ... | ... | @@ -373,7 +373,7 @@ fn analyzeInst( |
| 373 | 373 | .vector_init => { |
| 374 | 374 | const ty_pl = inst_datas[inst].ty_pl; |
| 375 | 375 | const vector_ty = a.air.getRefType(ty_pl.ty); |
| 376 | const len = vector_ty.arrayLen(); | |
| 376 | const len = @intCast(usize, vector_ty.arrayLen()); | |
| 377 | 377 | const elements = @bitCast([]const Air.Inst.Ref, a.air.extra[ty_pl.payload..][0..len]); |
| 378 | 378 | |
| 379 | 379 | if (elements.len <= bpi - 1) { |
src/Sema.zig+1-1| ... | ... | @@ -15056,7 +15056,7 @@ fn coerceTupleToArray( |
| 15056 | 15056 | ) !Air.Inst.Ref { |
| 15057 | 15057 | const inst_ty = sema.typeOf(inst); |
| 15058 | 15058 | const inst_len = inst_ty.arrayLen(); |
| 15059 | const dest_len = dest_ty.arrayLen(); | |
| 15059 | const dest_len = try sema.usizeCast(block, dest_ty_src, dest_ty.arrayLen()); | |
| 15060 | 15060 | |
| 15061 | 15061 | if (dest_len != inst_len) { |
| 15062 | 15062 | const msg = msg: { |
src/print_air.zig+1-1| ... | ... | @@ -296,7 +296,7 @@ const Writer = struct { |
| 296 | 296 | fn writeVectorInit(w: *Writer, s: anytype, inst: Air.Inst.Index) @TypeOf(s).Error!void { |
| 297 | 297 | const ty_pl = w.air.instructions.items(.data)[inst].ty_pl; |
| 298 | 298 | const vector_ty = w.air.getRefType(ty_pl.ty); |
| 299 | const len = vector_ty.arrayLen(); | |
| 299 | const len = @intCast(usize, vector_ty.arrayLen()); | |
| 300 | 300 | const elements = @bitCast([]const Air.Inst.Ref, w.air.extra[ty_pl.payload..][0..len]); |
| 301 | 301 | |
| 302 | 302 | try s.print("{}, [", .{vector_ty}); |