forked from OSchip/llvm-project
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:
parent
91dcf0f977
commit
4640a01c1c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue