mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-13 22:21:05 +00:00
revive-yul: fix the code block exit (#414)
This PR fixes the missing `STOP` instruction at the end of `code` blocks. --------- Signed-off-by: xermicus <bigcyrill@hotmail.com>
This commit is contained in:
@@ -64,6 +64,9 @@ impl PolkaVMWriteLLVM for Code {
|
||||
fn into_llvm(self, context: &mut PolkaVMContext) -> anyhow::Result<()> {
|
||||
self.block.into_llvm(context)?;
|
||||
|
||||
// The EVM lets the code return implicitly.
|
||||
revive_llvm_context::polkavm_evm_return::stop(context)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user