diff options
Diffstat (limited to 'include/lldb/Utility/ArchSpec.h')
| -rw-r--r-- | include/lldb/Utility/ArchSpec.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/lldb/Utility/ArchSpec.h b/include/lldb/Utility/ArchSpec.h index 680e9b1b9ea6..e84cbbbe5efa 100644 --- a/include/lldb/Utility/ArchSpec.h +++ b/include/lldb/Utility/ArchSpec.h @@ -15,11 +15,11 @@ #include "lldb/lldb-enumerations.h" #include "lldb/lldb-forward.h" #include "lldb/lldb-private-enumerations.h" -#include "llvm/ADT/StringRef.h" // for StringRef +#include "llvm/ADT/StringRef.h" #include "llvm/ADT/Triple.h" -#include <cstddef> // for size_t -#include <cstdint> // for uint32_t -#include <string> // for string +#include <cstddef> +#include <cstdint> +#include <string> namespace lldb_private { @@ -371,6 +371,7 @@ public: bool IsValid() const { return m_core >= eCore_arm_generic && m_core < kNumCores; } + explicit operator bool() const { return IsValid(); } bool TripleVendorWasSpecified() const { return !m_triple.getVendorName().empty(); |
