diff options
Diffstat (limited to 'src/binary-writer.cc')
-rw-r--r-- | src/binary-writer.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/binary-writer.cc b/src/binary-writer.cc index b0af2c35..c77f645a 100644 --- a/src/binary-writer.cc +++ b/src/binary-writer.cc @@ -359,6 +359,12 @@ void BinaryWriter::WriteExpr(const Module* module, case ExprType::AtomicStore: WriteLoadStoreExpr<AtomicStoreExpr>(module, func, expr, "memory offset"); break; + case ExprType::AtomicWait: + WriteLoadStoreExpr<AtomicWaitExpr>(module, func, expr, "memory offset"); + break; + case ExprType::AtomicWake: + WriteLoadStoreExpr<AtomicWakeExpr>(module, func, expr, "memory offset"); + break; case ExprType::Binary: WriteOpcode(stream_, cast<BinaryExpr>(expr)->opcode); break; @@ -545,12 +551,6 @@ void BinaryWriter::WriteExpr(const Module* module, case ExprType::Unreachable: WriteOpcode(stream_, Opcode::Unreachable); break; - case ExprType::Wait: - WriteLoadStoreExpr<WaitExpr>(module, func, expr, "memory offset"); - break; - case ExprType::Wake: - WriteLoadStoreExpr<WakeExpr>(module, func, expr, "memory offset"); - break; } } |