diff options
author | Adrian Prantl <aprantl@apple.com> | 2019-10-01 17:08:38 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2019-10-01 17:08:38 +0000 |
commit | 771d464f49ee029ec97a57485b09756fbdf92e40 (patch) | |
tree | 2144251c6208790a89c4244fce9dd0dfdfc5be44 | |
parent | 0200626f0bfe088ab65cfe69cb8f2647e71d08b3 (diff) | |
download | bcm5719-llvm-771d464f49ee029ec97a57485b09756fbdf92e40.tar.gz bcm5719-llvm-771d464f49ee029ec97a57485b09756fbdf92e40.zip |
Simplify condition (NFC)
llvm-svn: 373352
-rw-r--r-- | lldb/source/DataFormatters/TypeFormat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/DataFormatters/TypeFormat.cpp b/lldb/source/DataFormatters/TypeFormat.cpp index b526e9a744b..b272c2e8dc3 100644 --- a/lldb/source/DataFormatters/TypeFormat.cpp +++ b/lldb/source/DataFormatters/TypeFormat.cpp @@ -164,7 +164,7 @@ bool TypeFormatImpl_EnumType::FormatObject(ValueObject *valobj, llvm::DenseSet<lldb_private::SymbolFile *> searched_symbol_files; images.FindTypes(nullptr, m_enum_type, false, UINT32_MAX, searched_symbol_files, types); - if (types.GetSize() == 0) + if (types.Empty()) return false; for (lldb::TypeSP type_sp : types.Types()) { if (!type_sp) |