summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBStructuredData.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/API/SBStructuredData.cpp')
-rw-r--r--lldb/source/API/SBStructuredData.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/API/SBStructuredData.cpp b/lldb/source/API/SBStructuredData.cpp
index 9c06015b230..97d771dfaf9 100644
--- a/lldb/source/API/SBStructuredData.cpp
+++ b/lldb/source/API/SBStructuredData.cpp
@@ -74,6 +74,10 @@ lldb::SBError SBStructuredData::SetFromJSON(lldb::SBStream &stream) {
bool SBStructuredData::IsValid() const {
LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBStructuredData, IsValid);
+ return this->operator bool();
+}
+SBStructuredData::operator bool() const {
+ LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBStructuredData, operator bool);
return m_impl_up->IsValid();
}
OpenPOWER on IntegriCloud