diff options
Diffstat (limited to 'lldb/source/API/SBDeclaration.cpp')
| -rw-r--r-- | lldb/source/API/SBDeclaration.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/API/SBDeclaration.cpp b/lldb/source/API/SBDeclaration.cpp index 9283ebe37a6..c04331aa00d 100644 --- a/lldb/source/API/SBDeclaration.cpp +++ b/lldb/source/API/SBDeclaration.cpp @@ -54,6 +54,10 @@ SBDeclaration::~SBDeclaration() {} bool SBDeclaration::IsValid() const { LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBDeclaration, IsValid); + return this->operator bool(); +} +SBDeclaration::operator bool() const { + LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBDeclaration, operator bool); return m_opaque_up.get() && m_opaque_up->IsValid(); } |

