From 771d464f49ee029ec97a57485b09756fbdf92e40 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Tue, 1 Oct 2019 17:08:38 +0000 Subject: [PATCH] Simplify condition (NFC) llvm-svn: 373352 --- lldb/source/DataFormatters/TypeFormat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/DataFormatters/TypeFormat.cpp b/lldb/source/DataFormatters/TypeFormat.cpp index b526e9a7..b272c2e 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 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) -- 2.7.4