Merge remote-tracking branch 'origin/topic/timw/coverity-fixes'

* origin/topic/timw/coverity-fixes:
  Fix a number of Coverity findings
This commit is contained in:
Tim Wojtulewicz 2021-11-29 13:46:59 -07:00
commit 6a5b51eba8
6 changed files with 24 additions and 8 deletions

View file

@ -64,9 +64,9 @@ public:
}
// Create a stub instruction that will be populated later.
ZInst() { }
ZInst() = default;
virtual ~ZInst() { }
virtual ~ZInst() = default;
// Methods for printing out the instruction for debugging/maintenance.
void Dump(bro_uint_t inst_num, const FrameReMap* mappings) const;
@ -93,8 +93,8 @@ public:
// Returns a string describing the constant.
std::string ConstDump() const;
ZOp op;
ZAMOpType op_type;
ZOp op = OP_NOP;
ZAMOpType op_type = OP_X;
// Usually indices into frame, though sometimes hold integer constants.
// When an instruction has both frame slots and integer constants,