diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Bytecode/Generator.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Bytecode/Generator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Bytecode/Generator.cpp b/Userland/Libraries/LibJS/Bytecode/Generator.cpp index c08f233319..46d844eff6 100644 --- a/Userland/Libraries/LibJS/Bytecode/Generator.cpp +++ b/Userland/Libraries/LibJS/Bytecode/Generator.cpp @@ -36,9 +36,9 @@ CodeGenerationErrorOr<NonnullOwnPtr<Executable>> Generator::generate(ASTNode con if (generator.is_in_generator_or_async_function()) { // Terminate all unterminated blocks with yield return for (auto& block : generator.m_root_basic_blocks) { - if (block.is_terminated()) + if (block->is_terminated()) continue; - generator.switch_to_basic_block(block); + generator.switch_to_basic_block(*block); generator.emit<Bytecode::Op::LoadImmediate>(js_undefined()); generator.emit<Bytecode::Op::Yield>(nullptr); } |