diff options
Diffstat (limited to 'lldb/source/API/SBWatchpoint.cpp')
| -rw-r--r-- | lldb/source/API/SBWatchpoint.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/API/SBWatchpoint.cpp b/lldb/source/API/SBWatchpoint.cpp index 7e049fd4dd5..11113ae49f8 100644 --- a/lldb/source/API/SBWatchpoint.cpp +++ b/lldb/source/API/SBWatchpoint.cpp @@ -62,6 +62,10 @@ watch_id_t SBWatchpoint::GetID() { bool SBWatchpoint::IsValid() const { LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBWatchpoint, IsValid); + return this->operator bool(); +} +SBWatchpoint::operator bool() const { + LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBWatchpoint, operator bool); return bool(m_opaque_wp.lock()); } |

