mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
LibJS: Actually generate the bytecode CFG
This is just something I spotted looking around the code, previously the PassPipelineExecutable was passed by value to generate_cfg_for_block, which generated the CFG then just dropped it on the floor. Making this a reference results in the CFG actually getting generated.
This commit is contained in:
parent
fb94415f03
commit
17a5af04e3
Notes:
sideshowbarker
2024-07-17 05:21:12 +09:00
Author: https://github.com/MacDue Commit: https://github.com/SerenityOS/serenity/commit/17a5af04e3 Pull-request: https://github.com/SerenityOS/serenity/pull/20117
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ static BasicBlock const* next_handler_or_finalizer()
|
||||||
return unwind_frames.last()->handler ?: unwind_frames.last()->finalizer;
|
return unwind_frames.last()->handler ?: unwind_frames.last()->finalizer;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void generate_cfg_for_block(BasicBlock const& current_block, PassPipelineExecutable executable)
|
static void generate_cfg_for_block(BasicBlock const& current_block, PassPipelineExecutable& executable)
|
||||||
{
|
{
|
||||||
seen_blocks.set(¤t_block);
|
seen_blocks.set(¤t_block);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue