summaryrefslogtreecommitdiff
path: root/src/binary-reader-ir.cc
diff options
context:
space:
mode:
authorKeith Winstein <keithw@cs.stanford.edu>2023-09-11 15:32:26 -0700
committerGitHub <noreply@github.com>2023-09-11 15:32:26 -0700
commitbceb243429e6801a1d839de880853958d247221f (patch)
tree42b51babcbddd14be236b83b326c2f47ea5043c0 /src/binary-reader-ir.cc
parent2581e8d55d01f3c431c2d7fcbfd89ce84fe2811f (diff)
downloadwabt-bceb243429e6801a1d839de880853958d247221f.tar.gz
wabt-bceb243429e6801a1d839de880853958d247221f.tar.bz2
wabt-bceb243429e6801a1d839de880853958d247221f.zip
Flip order of memory indexes on memory.copy (#2294)
Reflects change in the multi-memory proposal: https://github.com/WebAssembly/multi-memory/pull/29
Diffstat (limited to 'src/binary-reader-ir.cc')
-rw-r--r--src/binary-reader-ir.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/binary-reader-ir.cc b/src/binary-reader-ir.cc
index 69ff72aa..51b5e2c8 100644
--- a/src/binary-reader-ir.cc
+++ b/src/binary-reader-ir.cc
@@ -229,7 +229,7 @@ class BinaryReaderIR : public BinaryReaderNop {
Result OnLocalSetExpr(Index local_index) override;
Result OnLocalTeeExpr(Index local_index) override;
Result OnLoopExpr(Type sig_type) override;
- Result OnMemoryCopyExpr(Index srcmemidx, Index destmemidx) override;
+ Result OnMemoryCopyExpr(Index destmemidx, Index srcmemidx) override;
Result OnDataDropExpr(Index segment_index) override;
Result OnMemoryFillExpr(Index memidx) override;
Result OnMemoryGrowExpr(Index memidx) override;
@@ -1024,9 +1024,9 @@ Result BinaryReaderIR::OnLoopExpr(Type sig_type) {
return PushLabel(LabelType::Loop, expr_list);
}
-Result BinaryReaderIR::OnMemoryCopyExpr(Index srcmemidx, Index destmemidx) {
+Result BinaryReaderIR::OnMemoryCopyExpr(Index destmemidx, Index srcmemidx) {
return AppendExpr(std::make_unique<MemoryCopyExpr>(
- Var(srcmemidx, GetLocation()), Var(destmemidx, GetLocation())));
+ Var(destmemidx, GetLocation()), Var(srcmemidx, GetLocation())));
}
Result BinaryReaderIR::OnDataDropExpr(Index segment) {