diff options
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index e653e85bd..e512d398f 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -317,13 +317,15 @@ struct PrintExpressionContents } void visitAtomicWait(AtomicWait* curr) { prepareColor(o); - o << forceConcrete(curr->expectedType) << ".atomic.wait"; + Type type = forceConcrete(curr->expectedType); + assert(type == Type::i32 || type == Type::i64); + o << "memory.atomic.wait" << (type == Type::i32 ? "32" : "64"); if (curr->offset) { o << " offset=" << curr->offset; } } void visitAtomicNotify(AtomicNotify* curr) { - printMedium(o, "atomic.notify"); + printMedium(o, "memory.atomic.notify"); if (curr->offset) { o << " offset=" << curr->offset; } |