diff options
author | Thomas Lively <tlively@google.com> | 2024-03-21 19:08:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-21 19:08:49 -0700 |
commit | f5147a14e7a7c447bfbc38d05dff19a5231697c0 (patch) | |
tree | d82ff60f96a446065aced40c2fc1c32b0c31f5eb /src | |
parent | ccfd01e960fad738f0a3151970b7124dcd2b9e32 (diff) | |
download | binaryen-f5147a14e7a7c447bfbc38d05dff19a5231697c0.tar.gz binaryen-f5147a14e7a7c447bfbc38d05dff19a5231697c0.tar.bz2 binaryen-f5147a14e7a7c447bfbc38d05dff19a5231697c0.zip |
Mark non-closed types as requiring GC (#6421)
This omission was able to cause a problem with text round-tripping.
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm/wasm-type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm-type.cpp b/src/wasm/wasm-type.cpp index b14e5aa39..5957f9388 100644 --- a/src/wasm/wasm-type.cpp +++ b/src/wasm/wasm-type.cpp @@ -933,7 +933,7 @@ FeatureSet Type::getFeatures() const { if (heapType->isStruct() || heapType->isArray() || heapType->getRecGroup().size() > 1 || - heapType->getDeclaredSuperType()) { + heapType->getDeclaredSuperType() || heapType->isOpen()) { feats |= FeatureSet::ReferenceTypes | FeatureSet::GC; } else if (heapType->isSignature()) { // This is a function reference, which requires reference types and |