From: Alex Coyte Date: Wed, 16 Aug 2017 06:36:12 +0000 (+1000) Subject: maintain castle report information X-Git-Tag: v4.6.0^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6c050abd65f0651c2cf8ce6f4b655456fe37fc7;p=thirdparty%2Fvectorscan.git maintain castle report information --- diff --git a/src/rose/rose_build_role_aliasing.cpp b/src/rose/rose_build_role_aliasing.cpp index 22581caf..359550e1 100644 --- a/src/rose/rose_build_role_aliasing.cpp +++ b/src/rose/rose_build_role_aliasing.cpp @@ -772,9 +772,13 @@ void pruneCastle(CastleProto &castle, ReportID report) { /** \brief Set all reports to the given one. */ static void setReports(CastleProto &castle, ReportID report) { - for (auto &repeat : castle.repeats | map_values) { + castle.report_map.clear(); + for (auto &e : castle.repeats) { + u32 top = e.first; + auto &repeat = e.second; repeat.reports.clear(); repeat.reports.insert(report); + castle.report_map[report].insert(top); } }