summaryrefslogtreecommitdiff
path: root/contrib/llvm/tools/lldb/source/API/SBValue.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-01-20 15:00:15 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-01-20 15:00:15 +0000
commit763d4102c9736544f95a61d4d0a9a5be8c5a5df1 (patch)
treeb4a2965a49e80461fb52cd69d55f966058e7ef4d /contrib/llvm/tools/lldb/source/API/SBValue.cpp
parent0e23b2ff8c430cd1145afb7bd55917c326bb1d06 (diff)
parent94994d372d014ce4c8758b9605d63fae651bd8aa (diff)
Notes
Diffstat (limited to 'contrib/llvm/tools/lldb/source/API/SBValue.cpp')
-rw-r--r--contrib/llvm/tools/lldb/source/API/SBValue.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/contrib/llvm/tools/lldb/source/API/SBValue.cpp b/contrib/llvm/tools/lldb/source/API/SBValue.cpp
index a270c0471e9f..a61a2a19a621 100644
--- a/contrib/llvm/tools/lldb/source/API/SBValue.cpp
+++ b/contrib/llvm/tools/lldb/source/API/SBValue.cpp
@@ -18,7 +18,6 @@
#include "lldb/Breakpoint/Watchpoint.h"
#include "lldb/Core/Module.h"
-#include "lldb/Core/Scalar.h"
#include "lldb/Core/Section.h"
#include "lldb/Core/StreamFile.h"
#include "lldb/Core/Value.h"
@@ -38,6 +37,7 @@
#include "lldb/Target/Thread.h"
#include "lldb/Utility/DataExtractor.h"
#include "lldb/Utility/Log.h"
+#include "lldb/Utility/Scalar.h"
#include "lldb/Utility/Stream.h"
#include "lldb/API/SBDebugger.h"
@@ -98,10 +98,7 @@ public:
// they depend on. So I have no good way to make that check without
// tracking that in all the ValueObject subclasses.
TargetSP target_sp = m_valobj_sp->GetTargetSP();
- if (target_sp && target_sp->IsValid())
- return true;
- else
- return false;
+ return target_sp && target_sp->IsValid();
}
}