From 7c4490cfc9dbee7e95c9d80c54be57e91f63cd67 Mon Sep 17 00:00:00 2001 From: Wang Xiang W Date: Fri, 3 Apr 2020 12:08:10 -0400 Subject: [PATCH] smallwrite: add report dedupe check --- src/rose/rose_build_dedupe.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rose/rose_build_dedupe.cpp b/src/rose/rose_build_dedupe.cpp index 04144f56..d5d002d4 100644 --- a/src/rose/rose_build_dedupe.cpp +++ b/src/rose/rose_build_dedupe.cpp @@ -29,6 +29,7 @@ #include "rose_build_impl.h" #include "nfa/castlecompile.h" #include "nfagraph/ng_repeat.h" +#include "smallwrite/smallwrite_build.h" #include "util/compile_context.h" #include "util/boundary_reports.h" #include "util/make_unique.h" @@ -159,6 +160,10 @@ RoseDedupeAuxImpl::RoseDedupeAuxImpl(const RoseBuildImpl &build_in) } } + for (const auto &report_id : build.smwr.all_reports()) { + live_reports.insert(report_id); + } + // Collect live reports from boundary reports. insert(&live_reports, build.boundary.report_at_0); insert(&live_reports, build.boundary.report_at_0_eod);