authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-12-16 22:47:19-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-12-16 22:47:19-05:00
logb242c2ac103cbb251751dcf94f665e57b9551156
treee53806d890b0f672ea10ad6f5216546eed4d9878
parentb1abe4a1720773e5c33387e6608b192530239552
signaturelock-open Commit is signed but in an unrecognized format.

avoid using undefined value

closes #3933

1 files changed, 2 insertions(+), 2 deletions(-)

src/ir.cpp+2-2
......@@ -14959,9 +14959,9 @@ static IrInstruction *ir_analyze_bin_op_cmp_numeric(IrAnalyze *ira, IrInstructio
1495914959 op2_bits += 1;
1496014960 }
1496114961 }
14962 uint32_t dest_int_bits = (op1_bits > op2_bits) ? op1_bits : op2_bits;
1496314962 ZigType *dest_scalar_type = (dest_float_type == nullptr) ?
14964 get_int_type(ira->codegen, dest_int_is_signed, dest_int_bits) : dest_float_type;
14963 get_int_type(ira->codegen, dest_int_is_signed, (op1_bits > op2_bits) ? op1_bits : op2_bits) :
14964 dest_float_type;
1496514965 ZigType *dest_type = (result_type->id == ZigTypeIdVector) ?
1496614966 get_vector_type(ira->codegen, result_type->data.vector.len, dest_scalar_type) : dest_scalar_type;
1496714967