Skip to content

Commit 4118ee7

Browse files
committed
fix bug in strip-noop optimization in copy_span
1 parent fcf8c5f commit 4118ee7

File tree

1 file changed

+1
-0
lines changed
  • crates/wasmi/src/engine/translator/func

1 file changed

+1
-0
lines changed

crates/wasmi/src/engine/translator/func/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ impl FuncTranslator {
521521
let values = &self.operands[..];
522522
let (results, values) = Self::copy_many_strip_noop_start(results, values, &self.layout)?;
523523
let values = Self::copy_many_strip_noop_end(results, values, &self.layout)?;
524+
let len = values.len() as u16;
524525
debug_assert!(!Self::has_overlapping_copies(
525526
results,
526527
values,

0 commit comments

Comments
 (0)