mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
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:
committed by
Jelle Raaijmakers
parent
423cdd447d
commit
2947ae7d6e
Notes:
github-actions[bot]
2025-06-24 16:44:34 +00:00
Author: https://github.com/alimpfard Commit: https://github.com/LadybirdBrowser/ladybird/commit/2947ae7d6e1 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5200 Reviewed-by: https://github.com/gmta ✅
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user