forked from OSchip/llvm-project
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:
parent
66d51fc41a
commit
1a4d078583
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue