Skip to content

Commit 9d0a5d4

Browse files
authored
[Telemetry] Add missing virtual destructors (llvm#121015)
Fixes warnings after llvm#121003.
1 parent 9ab5474 commit 9d0a5d4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/include/llvm/Telemetry/Telemetry.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ namespace telemetry {
3030

3131
class Serializer {
3232
public:
33+
virtual ~Serializer() = default;
34+
3335
virtual Error init() = 0;
3436
virtual void write(StringRef KeyName, bool Value) = 0;
3537
virtual void write(StringRef KeyName, StringRef Value) = 0;
@@ -62,6 +64,8 @@ class Serializer {
6264
/// This struct can be extended as needed to add additional configuration
6365
/// points specific to a vendor's implementation.
6466
struct Config {
67+
virtual ~Config() = default;
68+
6569
// If true, telemetry will be enabled.
6670
const bool EnableTelemetry;
6771
Config(bool E) : EnableTelemetry(E) {}
@@ -132,6 +136,8 @@ class Destination {
132136
/// monitored and transmitting the data elsewhere.
133137
class Manager {
134138
public:
139+
virtual ~Manager() = default;
140+
135141
// Optional callback for subclasses to perform additional tasks before
136142
// dispatching to Destinations.
137143
virtual Error preDispatch(TelemetryInfo *Entry) = 0;

0 commit comments

Comments
 (0)