Skip to content

Commit 0c9658f

Browse files
committed
Add missing virtual destructor
1 parent c6f9231 commit 0c9658f

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

src/goto-instrument/rw_set.h

+1-9
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class rw_set_baset
4040
{
4141
}
4242

43-
~rw_set_baset() {}
43+
virtual ~rw_set_baset() = default;
4444

4545
struct entryt
4646
{
@@ -136,8 +136,6 @@ class _rw_set_loct:public rw_set_baset
136136
{
137137
}
138138

139-
~_rw_set_loct() {}
140-
141139
protected:
142140
value_setst &value_sets;
143141
const goto_programt::const_targett target;
@@ -192,8 +190,6 @@ class rw_set_loct:public _rw_set_loct
192190
{
193191
compute();
194192
}
195-
196-
~rw_set_loct() {}
197193
};
198194

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

216-
~rw_set_functiont() {}
217-
218212
protected:
219213
const namespacet ns;
220214
value_setst &value_sets;
@@ -258,8 +252,6 @@ class rw_set_with_trackt:public _rw_set_loct
258252
compute();
259253
}
260254

261-
~rw_set_with_trackt() {}
262-
263255
protected:
264256
/* flag and variable in the expression, from which we dereference */
265257
bool dereferencing;

src/pointer-analysis/value_set.h

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ class value_sett
4545
{
4646
}
4747

48+
virtual ~value_sett() = default;
49+
4850
static bool field_sensitive(
4951
const irep_idt &id,
5052
const typet &type,

src/util/endianness_map.h

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ class endianness_mapt
4141
{
4242
}
4343

44+
virtual ~endianness_mapt() = default;
45+
4446
size_t map_bit(size_t bit) const
4547
{
4648
assert(bit<map.size());

0 commit comments

Comments
 (0)