Fixed a flipped conditional when writing back the

values of variables in the Materializer.

The Materializer should not write the variable
back if its new value is the *same* as the old
value, not if the new value is *different*.

<rdar://problem/16712205>

llvm-svn: 207148
This commit is contained in:
Sean Callanan 2014-04-24 21:43:04 +00:00
parent 91dcf0f977
commit 4640a01c1c
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}