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:
MacDue 2023-07-20 23:49:48 +01:00 committed by Andreas Kling
parent fb94415f03
commit 17a5af04e3
Notes: sideshowbarker 2024-07-17 05:21:12 +09:00

View file

@ -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(&current_block); seen_blocks.set(&current_block);