mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:17:34 +00:00
LibWasm: Make structured_end() jump to the instruction after itself
This commit is contained in:
parent
e9b746a723
commit
025b3349e4
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ ParseResult<Vector<Instruction>> Instruction::parse(InputStream& stream, Instruc
|
||||||
result.value().values.append(Instruction { Instructions::structured_end });
|
result.value().values.append(Instruction { Instructions::structured_end });
|
||||||
|
|
||||||
// Transform op(..., instr*) -> op(...) instr* op(end(ip))
|
// Transform op(..., instr*) -> op(...) instr* op(end(ip))
|
||||||
result.value().values.prepend(Instruction { opcode, StructuredInstructionArgs { BlockType { block_type.release_value() }, ip, {} } });
|
result.value().values.prepend(Instruction { opcode, StructuredInstructionArgs { BlockType { block_type.release_value() }, ++ip, {} } });
|
||||||
return result.release_value().values;
|
return result.release_value().values;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue