From aeb8b5685fa2f7573a8baf8321906c14e08f6d26 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 28 Sep 2023 12:48:29 +0200 Subject: [PATCH] LibJS: Make Bytecode::Generator::emit() return void There are no callers left that use 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 770e1d90f1..62b245f982 100644 --- a/Userland/Libraries/LibJS/Bytecode/Generator.h +++ b/Userland/Libraries/LibJS/Bytecode/Generator.h @@ -45,7 +45,7 @@ public: }; template - OpType& emit(Args&&... args) + void emit(Args&&... args) { VERIFY(!is_current_block_terminated()); size_t slot_offset = m_current_basic_block->size(); @@ -56,7 +56,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; } template