forked from OSchip/llvm-project
[lldb][asan] Mark destructor as virtual to allow subclasses.
`lldb_private::ScriptInterpreterPython::CommandDataPython` inherits from `lldb_private::BreakpointOptions::CommandData`, but the latter does not have a virtual destructor. This leads to a new-delete-type-mismatch error when running certain tests (such as `functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py`) under asan.
This commit is contained in:
parent
87bf0b0ee9
commit
0de3d0c612
|
@ -51,7 +51,7 @@ public:
|
|||
: user_source(user_source), script_source(), interpreter(interp),
|
||||
stop_on_error(true) {}
|
||||
|
||||
~CommandData() = default;
|
||||
virtual ~CommandData() = default;
|
||||
|
||||
static const char *GetSerializationKey() { return "BKPTCMDData"; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue