mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
safety assertions for delayed rebuild
This commit is contained in:
committed by
Matthew Barr
parent
a4af801dd1
commit
8ee8f5f236
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user