| ... | @@ -25144,11 +25144,11 @@ fn zirRoundOpType(sema: *Sema, block: *Block, extended: Zir.Inst.Extended.InstDa | ... | @@ -25144,11 +25144,11 @@ fn zirRoundOpType(sema: *Sema, block: *Block, extended: Zir.Inst.Extended.InstDa |
| 25144 | const extra = sema.code.extraData(Zir.Inst.UnNode, extended.operand).data; | 25144 | const extra = sema.code.extraData(Zir.Inst.UnNode, extended.operand).data; |
| 25145 | const operand_src = block.builtinCallArgSrc(extra.node, 0); | 25145 | const operand_src = block.builtinCallArgSrc(extra.node, 0); |
| 25146 | | 25146 | |
| 25147 | const dest_ty_or_poison = try sema.resolveTypeOrPoison(block, operand_src, extra.operand) orelse Type.generic_poison; | 25147 | const dest_ty = try sema.resolveTypeOrPoison(block, operand_src, extra.operand) orelse { |
| 25148 | | 25148 | return .generic_poison_type; |
| 25149 | if (dest_ty_or_poison.isGenericPoison()) return .generic_poison_type; | 25149 | }; |
| 25150 | | 25150 | |
| 25151 | const float_ty = dest_ty_or_poison.optEuBaseType(zcu); | 25151 | const float_ty = dest_ty.optEuBaseType(zcu); |
| 25152 | switch (float_ty.scalarType(zcu).zigTypeTag(zcu)) { | 25152 | switch (float_ty.scalarType(zcu).zigTypeTag(zcu)) { |
| 25153 | .float, .comptime_float => return .fromType(float_ty), | 25153 | .float, .comptime_float => return .fromType(float_ty), |
| 25154 | else => return .comptime_float_type, | 25154 | else => return .comptime_float_type, |