Fixed bug in BlockDeDuplicator

This commit is contained in:
Harikrishnan Mulackal 2020-05-15 20:46:50 +05:30
parent 77796d0349
commit a9fa9429d5

View File

@ -113,6 +113,10 @@ bool BlockDeduplicator::applyTagReplacement(
if (subId != _subId)
continue;
auto it = _replacements.find(tagId);
// Recursively look for the element replaced by tagId
for (auto _it = it; _it != _replacements.end(); _it = _replacements.find(_it->second))
it = _it;
if (it != _replacements.end())
{
changed = true;