diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-10-20 11:11:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-20 11:11:30 -0700 |
commit | 74d026b9afb7b11bf01639e900a382b32bacfb33 (patch) | |
tree | 89fa8acb6b69250fc30e01c2c76a6c6f3d0e6e0f /src/wasm/wasm.cpp | |
parent | 939706d9c4d7584a2a1c2627986f977512490058 (diff) | |
download | binaryen-74d026b9afb7b11bf01639e900a382b32bacfb33.tar.gz binaryen-74d026b9afb7b11bf01639e900a382b32bacfb33.tar.bz2 binaryen-74d026b9afb7b11bf01639e900a382b32bacfb33.zip |
Atomics support in interpreter + optimizer + fuzz fixes for that (#1227)
Diffstat (limited to 'src/wasm/wasm.cpp')
-rw-r--r-- | src/wasm/wasm.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp index f4562fe64..6441991c9 100644 --- a/src/wasm/wasm.cpp +++ b/src/wasm/wasm.cpp @@ -390,12 +390,14 @@ void AtomicCmpxchg::finalize() { } void AtomicWait::finalize() { + type = i32; if (ptr->type == unreachable || expected->type == unreachable || timeout->type == unreachable) { type = unreachable; } } void AtomicWake::finalize() { + type = i32; if (ptr->type == unreachable || wakeCount->type == unreachable) { type = unreachable; } |