diff options
Diffstat (limited to 'src/wasm-builder.h')
-rw-r--r-- | src/wasm-builder.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h index a66322eb4..7bd2eecfc 100644 --- a/src/wasm-builder.h +++ b/src/wasm-builder.h @@ -1148,7 +1148,7 @@ public: // Returns a replacement with the precise same type, and with minimal contents // as best we can. As a replacement, this may reuse the input node. template<typename T> Expression* replaceWithIdenticalType(T* curr) { - if (curr->type.isTuple()) { + if (curr->type.isTuple() && curr->type.isDefaultable()) { return makeConstantExpression(Literal::makeZeros(curr->type)); } if (curr->type.isNullable()) { |