safety assertions for delayed rebuild

This commit is contained in:
Justin Viiret 2017-02-01 10:50:44 +11:00 committed by Matthew Barr
parent a4af801dd1
commit 8ee8f5f236

View File

@ -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)) {