summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBTraceOptions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/API/SBTraceOptions.cpp')
-rw-r--r--lldb/source/API/SBTraceOptions.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/API/SBTraceOptions.cpp b/lldb/source/API/SBTraceOptions.cpp
index a9c799a7428..2512b7db2d8 100644
--- a/lldb/source/API/SBTraceOptions.cpp
+++ b/lldb/source/API/SBTraceOptions.cpp
@@ -104,6 +104,10 @@ void SBTraceOptions::setMetaDataBufferSize(uint64_t size) {
bool SBTraceOptions::IsValid() {
LLDB_RECORD_METHOD_NO_ARGS(bool, SBTraceOptions, IsValid);
+ return this->operator bool();
+}
+SBTraceOptions::operator bool() const {
+ LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBTraceOptions, operator bool);
if (m_traceoptions_sp)
return true;
OpenPOWER on IntegriCloud