mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +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
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…
Add table
Add a link
Reference in a new issue