diff --git a/lldb/source/Expression/Materializer.cpp b/lldb/source/Expression/Materializer.cpp index 8072558a62c9..bfe73539c245 100644 --- a/lldb/source/Expression/Materializer.cpp +++ b/lldb/source/Expression/Materializer.cpp @@ -614,7 +614,7 @@ public: if (m_original_data) { if ((data.GetByteSize() == m_original_data->GetByteSize()) && - memcmp(m_original_data->GetBytes(), data.GetDataStart(), data.GetByteSize())) + !memcmp(m_original_data->GetBytes(), data.GetDataStart(), data.GetByteSize())) { actually_write = false; }