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 201c8d183..cbfcbccad 100644 --- a/src/wasm/wasm.cpp +++ b/src/wasm/wasm.cpp @@ -353,6 +353,12 @@ void Store::finalize() { } } +void AtomicRMW::finalize() { + if (ptr->type == unreachable || value->type == unreachable) { + type = unreachable; + } +} + Const* Const::set(Literal value_) { value = value_; type = value.type; |