Skip to content
Prev Previous commit
remove dead code
  • Loading branch information
tlively committed Mar 22, 2024
commit eba0bb8bec32b54a6fdcb47549849cc7860322ee
4 changes: 0 additions & 4 deletions src/wasm-interpreter.h
Original file line number Diff line number Diff line change
Expand Up @@ -2136,10 +2136,6 @@ class ExpressionRunner : public OverriddenVisitor<SubType, Flow> {
auto endVal = end.getSingleValue().getUnsigned();
endVal = std::min<size_t>(endVal, refValues.size());

if (endVal > refValues.size()) {
trap("array oob");
}

Literals contents;
if (endVal > startVal) {
contents.reserve(endVal - startVal);
Expand Down