From 8ee8f5f236b0c4209ff123cfe07b293dff164b10 Mon Sep 17 00:00:00 2001 From: Justin Viiret Date: Wed, 1 Feb 2017 10:50:44 +1100 Subject: [PATCH] safety assertions for delayed rebuild --- src/rose/rose_build_matchers.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rose/rose_build_matchers.cpp b/src/rose/rose_build_matchers.cpp index b92941d7..cd88c980 100644 --- a/src/rose/rose_build_matchers.cpp +++ b/src/rose/rose_build_matchers.cpp @@ -650,6 +650,11 @@ MatcherProto makeMatcherProto(const RoseBuildImpl &build, size_t max_len, u32 max_offset) { MatcherProto mp; + if (delay_rebuild) { + assert(table == ROSE_FLOATING); + assert(build.cc.streaming); + } + for (const auto &e : build.literals.right) { const u32 id = e.first; if (!build.hasFinalId(id)) {