Fix a problem where a ValueObject could fail to update itself, but since it was previously valid, we'd have an old checksum to compare aginst no new checksum (because failure to update), and assert() and die. Fix the problem by only caring about this assertion logic if updates succeed

llvm-svn: 225418
This commit is contained in:
Enrico Granata 2015-01-08 00:29:12 +00:00
parent 66d51fc41a
commit 1a4d078583
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ ValueObject::UpdateValueIfNeeded (bool update_format)
m_value_checksum.clear();
}
assert (old_checksum.empty() == !need_compare_checksums);
assert (success && (old_checksum.empty() == !need_compare_checksums));
if (first_update)
SetValueDidChange (false);