| ... | ... | @@ -20881,7 +20881,15 @@ fn zirRoundCast( |
| 20881 | 20881 | const dest_scalar_ty = dest_ty.scalarType(zcu); |
| 20882 | 20882 | const operand_scalar_ty = operand_ty.scalarType(zcu); |
| 20883 | 20883 | |
| 20884 | | try sema.checkFloatType(block, operand_src, operand_scalar_ty); |
| 20884 | switch (operand_scalar_ty.zigTypeTag(zcu)) { |
| 20885 | .comptime_float, .float => {}, |
| 20886 | else => return sema.fail( |
| 20887 | block, |
| 20888 | operand_src, |
| 20889 | "expected float or vector type, found '{f}'", |
| 20890 | .{operand_ty.fmt(pt)}, |
| 20891 | ), |
| 20892 | } |
| 20885 | 20893 | |
| 20886 | 20894 | switch (dest_scalar_ty.zigTypeTag(zcu)) { |
| 20887 | 20895 | .float, .comptime_float => { |