summaryrefslogtreecommitdiff
path: root/src/wasm/wasm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm.cpp')
-rw-r--r--src/wasm/wasm.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp
index 19ba5be21..f82a06e68 100644
--- a/src/wasm/wasm.cpp
+++ b/src/wasm/wasm.cpp
@@ -368,6 +368,18 @@ void AtomicCmpxchg::finalize() {
}
}
+void AtomicWait::finalize() {
+ if (ptr->type == unreachable || expected->type == unreachable || timeout->type == unreachable) {
+ type = unreachable;
+ }
+}
+
+void AtomicWake::finalize() {
+ if (ptr->type == unreachable || wakeCount->type == unreachable) {
+ type = unreachable;
+ }
+}
+
Const* Const::set(Literal value_) {
value = value_;
type = value.type;