LibWasm: Make local_tee validation keep the value on the stack
This commit is contained in:
parent
48c3c01de4
commit
6e07e74261
Notes:
sideshowbarker
2024-07-18 04:38:32 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/6e07e74261 Pull-request: https://github.com/SerenityOS/serenity/pull/13770 Reviewed-by: https://github.com/sin-ack ✅
1 changed files with 1 additions and 0 deletions
|
@ -1420,6 +1420,7 @@ VALIDATE_INSTRUCTION(local_tee)
|
|||
|
||||
auto& value_type = m_context.locals[index.value()];
|
||||
TRY(stack.take(value_type));
|
||||
stack.append(value_type);
|
||||
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue