From 84850700a072b06142848afcda14b98b153be935 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 28 Sep 2023 12:29:50 +0200 Subject: [PATCH] LibJS: Make BC::Generator::emit_with_extra_register_slots() return void Nobody was using the return value. --- Userland/Libraries/LibJS/Bytecode/Generator.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Userland/Libraries/LibJS/Bytecode/Generator.h b/Userland/Libraries/LibJS/Bytecode/Generator.h index 49df3699b1..770e1d90f1 100644 --- a/Userland/Libraries/LibJS/Bytecode/Generator.h +++ b/Userland/Libraries/LibJS/Bytecode/Generator.h @@ -60,7 +60,7 @@ public: } template - OpType& emit_with_extra_register_slots(size_t extra_register_slots, Args&&... args) + void emit_with_extra_register_slots(size_t extra_register_slots, Args&&... args) { VERIFY(!is_current_block_terminated()); @@ -73,7 +73,6 @@ public: m_current_basic_block->terminate({}); auto* op = static_cast(slot); op->set_source_record({ m_current_ast_node->start_offset(), m_current_ast_node->end_offset() }); - return *op; } CodeGenerationErrorOr emit_load_from_reference(JS::ASTNode const&);