diff options
Diffstat (limited to 'src/wasm/wasm.cpp')
-rw-r--r-- | src/wasm/wasm.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp index cbfcbccad..d331ba3a2 100644 --- a/src/wasm/wasm.cpp +++ b/src/wasm/wasm.cpp @@ -359,6 +359,12 @@ void AtomicRMW::finalize() { } } +void AtomicCmpxchg::finalize() { + if (ptr->type == unreachable || expected->type == unreachable || replacement->type == unreachable) { + type = unreachable; + } +} + Const* Const::set(Literal value_) { value = value_; type = value.type; |