diff options
Diffstat (limited to 'lldb/source/API/SBCompileUnit.cpp')
-rw-r--r-- | lldb/source/API/SBCompileUnit.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/API/SBCompileUnit.cpp b/lldb/source/API/SBCompileUnit.cpp index b3b705f58a6..2372e0e5060 100644 --- a/lldb/source/API/SBCompileUnit.cpp +++ b/lldb/source/API/SBCompileUnit.cpp @@ -188,6 +188,10 @@ lldb::LanguageType SBCompileUnit::GetLanguage() { bool SBCompileUnit::IsValid() const { LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBCompileUnit, IsValid); + return this->operator bool(); +} +SBCompileUnit::operator bool() const { + LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBCompileUnit, operator bool); return m_opaque_ptr != NULL; } |