diff --git a/lldb/include/lldb/Core/Telemetry.h b/lldb/include/lldb/Core/Telemetry.h index 5be68de6fcd7f..1db69723b4706 100644 --- a/lldb/include/lldb/Core/Telemetry.h +++ b/lldb/include/lldb/Core/Telemetry.h @@ -102,6 +102,17 @@ struct ClientInfo : public LLDBBaseTelemetryInfo { std::string client_data; std::optional error_msg; + // For dyn_cast, isa, etc operations. + llvm::telemetry::KindType getKind() const override { + return LLDBEntryKind::ClientInfo; + } + + static bool classof(const llvm::telemetry::TelemetryInfo *t) { + // Subclasses of this is also acceptable. + return (t->getKind() & LLDBEntryKind::ClientInfo) == + LLDBEntryKind::ClientInfo; + } + void serialize(llvm::telemetry::Serializer &serializer) const override; };