Commit 6c092ff6 authored by Thomas Applencourt's avatar Thomas Applencourt
Browse files

Port back segfault

parent c7e6492d
Pipeline #13151 canceled with stage
......@@ -276,13 +276,19 @@ void print_array(std::unordered_map<thapi_function_name, <%= main_type %> > aggr
aggregated[function_name].merge(time);
}
<% if type == "hpt_dsd_t" %>
for (auto element: s_SubDevice_pointers) {
auto [ _a, _b, d1, d2 ] = element;
(void)_a; (void)_b; <%# Use un-used variable %>
if ( d1 == d2 ) {
s_SubDevice_pointers.erase(element);
}
}
{
std::set<hp_dsd_t> s_ToDelete;
for (auto element: s_SubDevice_pointers) {
auto [ _a, _b, d1, d2 ] = element;
(void)_a; (void)_b; <%# Use un-used variable %>
if ( d1 == d2 ) {
s_ToDelete.insert(element);
}
}
for (auto element: s_ToDelete) {
s_SubDevice_pointers.erase(element);
}
}
<% end %>
std::ostringstream oss;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment