fix uninitialized ZigValue

This commit is contained in:
xackus
2020-04-19 05:23:14 +02:00
committed by Andrew Kelley
parent 6c907a3509
commit d415ffd7d9
2 changed files with 4 additions and 3 deletions

View File

@@ -17009,7 +17009,7 @@ static IrInstGen *ir_analyze_bit_shift(IrAnalyze *ira, IrInstSrcBinOp *bin_op_in
if (op2_val == nullptr)
return ira->codegen->invalid_inst_gen;
ZigValue bit_count_value;
ZigValue bit_count_value = {};
init_const_usize(ira->codegen, &bit_count_value, bit_count);
if (!value_cmp_numeric_val_all(op2_val, CmpLT, &bit_count_value)) {