mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-10-10 00:02:24 +03:00
dfa: don't clear states, just mark dfa dead
The previous change caused some assertion issues.
This commit is contained in:
committed by
Matthew Barr
parent
3d4d39b8a9
commit
75e4aefabe
@@ -964,6 +964,8 @@ bytecode_ptr<NFA> mcclellanCompile_i(raw_dfa &raw, accel_dfa_build_strat &strat,
|
||||
const CompileContext &cc,
|
||||
bool trust_daddy_states,
|
||||
set<dstate_id_t> *accel_states) {
|
||||
assert(!is_dead(raw));
|
||||
|
||||
u16 total_daddy = 0;
|
||||
dfa_info info(strat);
|
||||
bool using8bit = cc.grey.allowMcClellan8 && info.size() <= 256;
|
||||
|
Reference in New Issue
Block a user