| author | |
| committer | |
| log | d415ffd7d95f9c88210154c19e64dabd6b546809 |
| tree | 68202442782bfdf3d33b99329a534000ad6bfcf3 |
| parent | 6c907a350989aa881cc0b0f71ec81d1ae1b449b7 |
2 files changed, 4 insertions(+), 3 deletions(-)
src/all_types.hpp+3-2| ... | ... | @@ -524,10 +524,11 @@ struct ZigValue { |
| 524 | 524 | RuntimeHintSlice rh_slice; |
| 525 | 525 | } data; |
| 526 | 526 | |
| 527 | // uncomment these to find bugs. can't leave them uncommented because of a gcc-9 warning | |
| 528 | //ZigValue(const ZigValue &other) = delete; // plz zero initialize with {} | |
| 527 | // uncomment this to find bugs. can't leave it uncommented because of a gcc-9 warning | |
| 529 | 528 | //ZigValue& operator= (const ZigValue &other) = delete; // use copy_const_val |
| 530 | 529 | |
| 530 | ZigValue(const ZigValue &other) = delete; // plz zero initialize with ZigValue val = {}; | |
| 531 | ||
| 531 | 532 | // for use in debuggers |
| 532 | 533 | void dump(); |
| 533 | 534 | }; |
src/ir.cpp+1-1| ... | ... | @@ -17009,7 +17009,7 @@ static IrInstGen *ir_analyze_bit_shift(IrAnalyze *ira, IrInstSrcBinOp *bin_op_in |
| 17009 | 17009 | if (op2_val == nullptr) |
| 17010 | 17010 | return ira->codegen->invalid_inst_gen; |
| 17011 | 17011 | |
| 17012 | ZigValue bit_count_value; | |
| 17012 | ZigValue bit_count_value = {}; | |
| 17013 | 17013 | init_const_usize(ira->codegen, &bit_count_value, bit_count); |
| 17014 | 17014 | |
| 17015 | 17015 | if (!value_cmp_numeric_val_all(op2_val, CmpLT, &bit_count_value)) { |