]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
maintain castle report information
authorAlex Coyte <a.coyte@intel.com>
Wed, 16 Aug 2017 06:36:12 +0000 (16:36 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Mon, 18 Sep 2017 03:29:34 +0000 (13:29 +1000)
src/rose/rose_build_role_aliasing.cpp

index 22581cafc9290fe0f39a55d617c029bc1d180b2f..359550e1189e2f8ae99c269121106fd2d6ef9d00 100644 (file)
@@ -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);
     }
 }