Merge pull request #5621 from chinhodado/patch-2

Avoid using an invalidated iterator
This commit is contained in:
Henrik Rydgård 2014-03-22 16:17:13 +01:00
commit 0b3f1e4a5b

View file

@ -740,7 +740,7 @@ void SymbolMap::AddLabel(const char* name, u32 address, int moduleIndex) {
auto active = activeLabels.find(address);
if (active != activeLabels.end() && active->second.module == moduleIndex) {
activeLabels.erase(active);
activeLabels.insert(std::make_pair(address, existing->second));
activeLabels.insert(std::make_pair(address, label));
}
}
} else {