diff options
Diffstat (limited to 'lldb/source/API/SBEvent.cpp')
| -rw-r--r-- | lldb/source/API/SBEvent.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/API/SBEvent.cpp b/lldb/source/API/SBEvent.cpp index 5cc131ef694..9cb2ab4dd2b 100644 --- a/lldb/source/API/SBEvent.cpp +++ b/lldb/source/API/SBEvent.cpp @@ -161,6 +161,10 @@ void SBEvent::reset(Event *event_ptr) { bool SBEvent::IsValid() const { LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBEvent, IsValid); + return this->operator bool(); +} +SBEvent::operator bool() const { + LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBEvent, operator bool); // Do NOT use m_opaque_ptr directly!!! Must use the SBEvent::get() accessor. // See comments in SBEvent::get().... |

