summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBThreadPlan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/API/SBThreadPlan.cpp')
-rw-r--r--lldb/source/API/SBThreadPlan.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/API/SBThreadPlan.cpp b/lldb/source/API/SBThreadPlan.cpp
index f8646fcd6e1..fdbda1b1c1b 100644
--- a/lldb/source/API/SBThreadPlan.cpp
+++ b/lldb/source/API/SBThreadPlan.cpp
@@ -97,6 +97,10 @@ lldb_private::ThreadPlan *SBThreadPlan::get() {
bool SBThreadPlan::IsValid() const {
LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBThreadPlan, IsValid);
+ return this->operator bool();
+}
+SBThreadPlan::operator bool() const {
+ LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBThreadPlan, operator bool);
return m_opaque_sp.get() != NULL;
}
OpenPOWER on IntegriCloud