mirror of
https://github.com/ziglang/zig.git
synced 2026-01-12 10:25:13 +00:00
stage2: make bool binop AIR return types based on operand type
This allows vector-of-bools operands to return a vector-of-bools.
This commit is contained in:
parent
4e357151a5
commit
2d8fef5680
@ -904,6 +904,8 @@ pub fn typeOfIndex(air: Air, inst: Air.Inst.Index) Type {
|
||||
.shl_sat,
|
||||
.min,
|
||||
.max,
|
||||
.bool_and,
|
||||
.bool_or,
|
||||
=> return air.typeOf(datas[inst].bin_op.lhs),
|
||||
|
||||
.sqrt,
|
||||
@ -935,8 +937,6 @@ pub fn typeOfIndex(air: Air, inst: Air.Inst.Index) Type {
|
||||
.is_non_err,
|
||||
.is_err_ptr,
|
||||
.is_non_err_ptr,
|
||||
.bool_and,
|
||||
.bool_or,
|
||||
=> return Type.initTag(.bool),
|
||||
|
||||
.const_ty => return Type.initTag(.type),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user