mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:58:11 +00:00
LibJS: Make Bytecode::Generator::emit() return void
There are no callers left that use the return value.
This commit is contained in:
parent
887183cad6
commit
aeb8b5685f
1 changed files with 1 additions and 2 deletions
|
@ -45,7 +45,7 @@ public:
|
|||
};
|
||||
|
||||
template<typename OpType, typename... Args>
|
||||
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<OpType*>(slot);
|
||||
op->set_source_record({ m_current_ast_node->start_offset(), m_current_ast_node->end_offset() });
|
||||
return *op;
|
||||
}
|
||||
|
||||
template<typename OpType, typename... Args>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue