aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Core/DataFileCache.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Core/DataFileCache.cpp b/lldb/source/Core/DataFileCache.cpp
index 8d4dba3..3f52b92 100644
--- a/lldb/source/Core/DataFileCache.cpp
+++ b/lldb/source/Core/DataFileCache.cpp
@@ -274,9 +274,8 @@ bool ConstStringTable::Encode(DataEncoder &encoder) {
encoder.AppendU8(0); // Start the string table with with an empty string.
for (auto s: m_strings) {
// Make sure all of the offsets match up with what we handed out!
- const size_t stroff = encoder.GetByteSize() - strtab_offset;
- auto pos = m_string_to_offset.find(s);
- assert(pos->second == stroff);
+ assert(m_string_to_offset.find(s)->second ==
+ encoder.GetByteSize() - strtab_offset);
// Append the C string into the encoder
encoder.AppendCString(s.GetStringRef());
}