summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2016-02-18 19:23:52 +0000
committerEnrico Granata <egranata@apple.com>2016-02-18 19:23:52 +0000
commitc525d3d4c705b0f2a427a3f128d367fe0f9b1855 (patch)
tree43107ec409901d3e62162f1918de5b7e5ccf6b0a /lldb
parentbd09e86f82ae520b804f50068ab129f3f0b72ab8 (diff)
downloadbcm5719-llvm-c525d3d4c705b0f2a427a3f128d367fe0f9b1855.tar.gz
bcm5719-llvm-c525d3d4c705b0f2a427a3f128d367fe0f9b1855.zip
Fix a typo in FormatCache.cpp such that the cache would potentially return an invalid format in some cases
llvm-svn: 261246
Diffstat (limited to 'lldb')
-rw-r--r--lldb/source/DataFormatters/FormatCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/DataFormatters/FormatCache.cpp b/lldb/source/DataFormatters/FormatCache.cpp
index 748c6d80fbd..fa749405b60 100644
--- a/lldb/source/DataFormatters/FormatCache.cpp
+++ b/lldb/source/DataFormatters/FormatCache.cpp
@@ -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++;
OpenPOWER on IntegriCloud