]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
rose: don't leave stray reports when copying the subgraph leading to a report
authorAlex Coyte <a.coyte@intel.com>
Fri, 29 Jul 2016 05:47:55 +0000 (15:47 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Wed, 10 Aug 2016 05:09:27 +0000 (15:09 +1000)
src/rose/rose_build_role_aliasing.cpp

index b2f6b3854d182be56ea9f0c7c78474317eb2265c..2c7568f4512e73f49d493893e6e4ed695bd12a43 100644 (file)
@@ -1234,8 +1234,7 @@ bool attemptRoseGraphMerge(RoseBuildImpl &build, bool preds_same, RoseVertex a,
         ReportID new_report = build.getNewNfaReport();
         shared_ptr<NGHolder> new_graph = cloneHolder(*b_h);
         duplicateReport(*new_graph, b_left.leftfix_report, new_report);
-        pruneReportIfUnused(build, new_graph, set<RoseVertex>(),
-                            b_left.leftfix_report);
+        pruneAllOtherReports(*new_graph, new_report);
 
         rai.rev_leftfix[a_left_id].erase(a);
         rai.rev_leftfix[b_left_id].erase(b);