summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/include/lldb/Utility/ConstString.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/include/lldb/Utility/ConstString.h b/lldb/include/lldb/Utility/ConstString.h
index fbf1a9bf536..c4b32a62fd8 100644
--- a/lldb/include/lldb/Utility/ConstString.h
+++ b/lldb/include/lldb/Utility/ConstString.h
@@ -140,7 +140,7 @@ public:
/// /b True this object contains a valid non-empty C string, \b
/// false otherwise.
//------------------------------------------------------------------
- explicit operator bool() const { return m_string && m_string[0]; }
+ explicit operator bool() const { return !IsEmpty(); }
//------------------------------------------------------------------
/// Assignment operator
OpenPOWER on IntegriCloud