Pārlūkot izejas kodu

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.
MacDue 2 gadi atpakaļ
vecāks
revīzija
17a5af04e3

+ 1 - 1
Userland/Libraries/LibJS/Bytecode/Pass/GenerateCFG.cpp

@@ -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);