Add map reset to llil4map.cc.

This commit is contained in:
greg7mdp
2024-03-31 22:06:55 -04:00
parent 4aa19d6152
commit 29c3091e50
+3
View File
@@ -416,6 +416,9 @@ int main(int argc, char* argv[])
auto it = I[i];
for (auto& x : set)
*it++ = std::make_pair(std::move(const_cast<str_type&>(x.first)), x.second);
// reset the set (no longer needed) to reclaim memory early
set = map_str_int_type::EmbeddedSet();
});
}
}