summaryrefslogtreecommitdiff
path: root/src/parser/contexts.h
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2024-06-14 14:54:15 -0700
committerGitHub <noreply@github.com>2024-06-14 14:54:15 -0700
commit881fe6a9df3ed89630e184de5fbee62013b37e2f (patch)
tree77fe078381ef26c31ecfb22d28b9eb7aed32089c /src/parser/contexts.h
parenteacea8060a29acefdd9cb45fdf95d73afa76c656 (diff)
downloadbinaryen-881fe6a9df3ed89630e184de5fbee62013b37e2f.tar.gz
binaryen-881fe6a9df3ed89630e184de5fbee62013b37e2f.tar.bz2
binaryen-881fe6a9df3ed89630e184de5fbee62013b37e2f.zip
[threads] Binary reading and writing of shared composite types (#6664)
Also update the parser so that implicit type uses are not matched with shared function types.
Diffstat (limited to 'src/parser/contexts.h')
-rw-r--r--src/parser/contexts.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parser/contexts.h b/src/parser/contexts.h
index 351f6a208..4acfc981a 100644
--- a/src/parser/contexts.h
+++ b/src/parser/contexts.h
@@ -1118,7 +1118,8 @@ struct ParseImplicitTypeDefsCtx : TypeParserCtx<ParseImplicitTypeDefsCtx> {
: TypeParserCtx<ParseImplicitTypeDefsCtx>(typeIndices), in(in),
types(types), implicitTypes(implicitTypes) {
for (auto type : types) {
- if (type.isSignature() && type.getRecGroup().size() == 1) {
+ if (type.isSignature() && type.getRecGroup().size() == 1 &&
+ !type.isShared()) {
sigTypes.insert({type.getSignature(), type});
}
}