Fix a typo in FormatCache.cpp such that the cache would potentially return an invalid...
authorEnrico Granata <egranata@apple.com>
Thu, 18 Feb 2016 19:23:52 +0000 (19:23 +0000)
committerEnrico Granata <egranata@apple.com>
Thu, 18 Feb 2016 19:23:52 +0000 (19:23 +0000)
llvm-svn: 261246

lldb/source/DataFormatters/FormatCache.cpp

index 748c6d8..fa74940 100644 (file)
@@ -183,7 +183,7 @@ FormatCache::GetFormat (const ConstString& type,lldb::TypeFormatImplSP& format_s
 {
     Mutex::Locker lock(m_mutex);
     auto entry = GetEntry(type);
-    if (entry.IsSummaryCached())
+    if (entry.IsFormatCached())
     {
 #ifdef LLDB_CONFIGURATION_DEBUG
         m_cache_hits++;