Skip to content

Commit

Permalink
Add missing virtual destructors (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
raccog authored Dec 25, 2023
1 parent 07e2ef9 commit fa0d2bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/isa/isainfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ struct RegisterFileName {

/// An interface into a register file.
struct RegFileInfoInterface {
virtual ~RegFileInfoInterface(){};
/// Returns this register file's type.
virtual std::string_view regFileName() const = 0;
/// Returns this register file's description.
Expand Down
1 change: 1 addition & 0 deletions src/isa/pseudoinstruction.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
namespace Ripes {

struct PseudoInstructionBase {
virtual ~PseudoInstructionBase() {}
virtual Result<std::vector<LineTokens>> expand(const TokenizedSrcLine &line,
SymbolMap &symbols) const = 0;
virtual QString name() const = 0;
Expand Down

0 comments on commit fa0d2bd

Please sign in to comment.