Skip to content

Commit

Permalink
tryout optimization in drop_keep
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbepop committed Feb 23, 2023
1 parent 94fe7fa commit ad25645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/wasmi/src/engine/stack/values/sp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ impl ValueStackPtr {
return;
}
let mut src = this.into_sub(keep);
let mut dst = this.into_sub(keep + drop);
let mut dst = this.into_sub(keep).into_sub(drop);
if keep == 1 {
// Case: only one value needs to be kept.
dst.set(src.get());
Expand Down

0 comments on commit ad25645

Please sign in to comment.