diff options
Diffstat (limited to 'lldb/source/API/SBSection.cpp')
| -rw-r--r-- | lldb/source/API/SBSection.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/API/SBSection.cpp b/lldb/source/API/SBSection.cpp index 0f1a9a994b9..ca4d4356a1f 100644 --- a/lldb/source/API/SBSection.cpp +++ b/lldb/source/API/SBSection.cpp @@ -48,6 +48,10 @@ SBSection::~SBSection() {} bool SBSection::IsValid() const { LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBSection, IsValid); + return this->operator bool(); +} +SBSection::operator bool() const { + LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBSection, operator bool); SectionSP section_sp(GetSP()); return section_sp && section_sp->GetModule().get() != NULL; |

