Skip to content

Commit a254403

Browse files
authored
Fix release-mode call continuation marker removal (#195)
1 parent e6d85a0 commit a254403

File tree

1 file changed

+2
-1
lines changed
  • crates/codegen/src/isa/evm

1 file changed

+2
-1
lines changed

crates/codegen/src/isa/evm/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,8 +1160,9 @@ impl LowerBackend for EvmBackend {
11601160
// continuation address for the call. We therefore allow the marker to
11611161
// appear anywhere in the action list and split around it.
11621162
let suffix: SmallVec<[Action; 2]> = actions.drain(cont_pos + 1..).collect();
1163+
let marker = actions.remove(cont_pos);
11631164
debug_assert_eq!(
1164-
actions.remove(cont_pos),
1165+
marker,
11651166
Action::PushContinuationOffset,
11661167
"expected continuation marker at split point"
11671168
);

0 commit comments

Comments
 (0)