Skip to content

Commit

Permalink
Merge pull request diffblue#2425 from tautschnig/vs-virtual
Browse files Browse the repository at this point in the history
Add missing virtual destructor
  • Loading branch information
tautschnig authored Jul 8, 2018
2 parents c6f9231 + 0c9658f commit be7159a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
10 changes: 1 addition & 9 deletions src/goto-instrument/rw_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class rw_set_baset
{
}

~rw_set_baset() {}
virtual ~rw_set_baset() = default;

struct entryt
{
Expand Down Expand Up @@ -136,8 +136,6 @@ class _rw_set_loct:public rw_set_baset
{
}

~_rw_set_loct() {}

protected:
value_setst &value_sets;
const goto_programt::const_targett target;
Expand Down Expand Up @@ -192,8 +190,6 @@ class rw_set_loct:public _rw_set_loct
{
compute();
}

~rw_set_loct() {}
};

// another producer, this time for entire functions
Expand All @@ -213,8 +209,6 @@ class rw_set_functiont:public rw_set_baset
compute_rec(function);
}

~rw_set_functiont() {}

protected:
const namespacet ns;
value_setst &value_sets;
Expand Down Expand Up @@ -258,8 +252,6 @@ class rw_set_with_trackt:public _rw_set_loct
compute();
}

~rw_set_with_trackt() {}

protected:
/* flag and variable in the expression, from which we dereference */
bool dereferencing;
Expand Down
2 changes: 2 additions & 0 deletions src/pointer-analysis/value_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ class value_sett
{
}

virtual ~value_sett() = default;

static bool field_sensitive(
const irep_idt &id,
const typet &type,
Expand Down
2 changes: 2 additions & 0 deletions src/util/endianness_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class endianness_mapt
{
}

virtual ~endianness_mapt() = default;

size_t map_bit(size_t bit) const
{
assert(bit<map.size());
Expand Down

0 comments on commit be7159a

Please sign in to comment.