1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:57:45 +00:00

LibWasm: Once more fix structured instruction label indices

This finally works correctly. ™️
This commit is contained in:
Ali Mohammad Pur 2021-05-21 21:09:34 +04:30 committed by Ali Mohammad Pur
parent d05e5dbdcf
commit c31a4e9013
2 changed files with 7 additions and 5 deletions

View file

@ -22,7 +22,7 @@ public:
{
m_current_frame = frame.ptr();
m_stack.push(move(frame));
m_stack.push(make<Label>(m_current_frame->arity(), m_current_frame->expression().instructions().size() - 1));
m_stack.push(make<Label>(m_current_frame->arity(), m_current_frame->expression().instructions().size()));
}
auto& frame() const { return m_current_frame; }
auto& frame() { return m_current_frame; }