rose_build_anchored: use bytecode_ptr

This commit is contained in:
Justin Viiret
2017-04-03 16:47:21 +10:00
committed by Matthew Barr
parent 7b17d418e7
commit 905ac78061
3 changed files with 10 additions and 13 deletions

View File

@@ -5824,10 +5824,9 @@ bytecode_ptr<RoseEngine> RoseBuildImpl::buildFinalEngine(u32 minWidth) {
writeLeftInfo(bc.engine_blob, proto, leftInfoTable);
// Build anchored matcher.
size_t asize = 0;
auto atable = buildAnchoredMatcher(*this, fragments, anchored_dfas, &asize);
auto atable = buildAnchoredMatcher(*this, fragments, anchored_dfas);
if (atable) {
proto.amatcherOffset = bc.engine_blob.add(atable.get(), asize, 64);
proto.amatcherOffset = bc.engine_blob.add(atable);
}
// Build floating HWLM matcher.
@@ -5952,7 +5951,7 @@ bytecode_ptr<RoseEngine> RoseBuildImpl::buildFinalEngine(u32 minWidth) {
proto.initialGroups = getInitialGroups();
proto.floating_group_mask = fgroups;
proto.totalNumLiterals = verify_u32(literal_info.size());
proto.asize = verify_u32(asize);
proto.asize = verify_u32(atable.size());
proto.ematcherRegionSize = ematcher_region_size;
proto.longLitStreamState = verify_u32(longLitStreamStateRequired);