diff options
Diffstat (limited to 'src/wasm/wasm.cpp')
-rw-r--r-- | src/wasm/wasm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp index 410ba0573..69464e73f 100644 --- a/src/wasm/wasm.cpp +++ b/src/wasm/wasm.cpp @@ -977,7 +977,7 @@ void StructGet::finalize() { } void StructSet::finalize() { - if (ref->type == Type::unreachable) { + if (ref->type == Type::unreachable || value->type == Type::unreachable) { type = Type::unreachable; } else { type = Type::none; |