1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:17:35 +00:00

LibJS: Make BC::Generator::emit_with_extra_register_slots() return void

Nobody was using the return value.
This commit is contained in:
Andreas Kling 2023-09-28 12:29:50 +02:00
parent 9e99368694
commit 84850700a0

View file

@ -60,7 +60,7 @@ public:
}
template<typename OpType, typename... Args>
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<OpType*>(slot);
op->set_source_record({ m_current_ast_node->start_offset(), m_current_ast_node->end_offset() });
return *op;
}
CodeGenerationErrorOr<void> emit_load_from_reference(JS::ASTNode const&);