LibRegex: Move required bytecode.flatten() outside optimization function

Not running the optimization passes should not leave the bytecode in a
broken state. Fixes #5146.
This commit is contained in:
Ali Mohammad Pur 2025-06-24 15:48:33 +02:00 committed by Jelle Raaijmakers
commit 2947ae7d6e
Notes: github-actions[bot] 2025-06-24 16:44:34 +00:00
2 changed files with 2 additions and 2 deletions

View file

@ -28,8 +28,6 @@ using Detail::Block;
template<typename Parser>
void Regex<Parser>::run_optimization_passes()
{
parser_result.bytecode.flatten();
rewrite_with_useless_jumps_removed();
auto blocks = split_basic_blocks(parser_result.bytecode);