diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-01-13 10:42:38 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-01-13 10:42:38 -0700 |
| commit | c5ee73f65b4c77fe08aa44b8611bf084ae700f24 (patch) | |
| tree | aca72ec5f4fe45695bf7eea6bb288ee2f3ef27e9 /src/Sema.zig | |
| parent | 9bf2bda68356212168a213141e0a21d9dab22655 (diff) | |
| download | zig-c5ee73f65b4c77fe08aa44b8611bf084ae700f24.tar.gz zig-c5ee73f65b4c77fe08aa44b8611bf084ae700f24.zip | |
stage2: fix build on 32-bit ISAs
Fixes regression introduced in 93b854eb745ab3294054ae71150fe60f134f4d10.
Diffstat (limited to 'src/Sema.zig')
| -rw-r--r-- | src/Sema.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Sema.zig b/src/Sema.zig index e52eb6e79c..165f629aab 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -11010,7 +11010,7 @@ fn zirClzCtz( const result_scalar_ty = try Type.smallestUnsignedInt(sema.arena, bits); switch (operand_ty.zigTypeTag()) { .Vector => { - const vec_len = operand_ty.arrayLen(); + const vec_len = operand_ty.vectorLen(); const result_ty = try Type.vector(sema.arena, vec_len, result_scalar_ty); if (try sema.resolveMaybeUndefVal(block, operand_src, operand)) |val| { if (val.isUndef()) return sema.addConstUndef(result_ty); @@ -14578,7 +14578,7 @@ fn coerceVectors( ) !Air.Inst.Ref { const inst_ty = sema.typeOf(inst); const inst_len = inst_ty.arrayLen(); - const dest_len = dest_ty.arrayLen(); + const dest_len = try sema.usizeCast(block, dest_ty_src, dest_ty.arrayLen()); if (dest_len != inst_len) { const msg = msg: { |
