summaryrefslogtreecommitdiff
path: root/src/tools/fuzzing/fuzzing.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-10-17 10:12:02 -0700
committerGitHub <noreply@github.com>2023-10-17 17:12:02 +0000
commit2bf3caae764689c606ae38353b1bad5fe28bf5bb (patch)
tree7112801575e46132fdccad7bf120f5cafb9471da /src/tools/fuzzing/fuzzing.cpp
parentb816ac563de6b1c53087796335fce593a96f569a (diff)
downloadbinaryen-2bf3caae764689c606ae38353b1bad5fe28bf5bb.tar.gz
binaryen-2bf3caae764689c606ae38353b1bad5fe28bf5bb.tar.bz2
binaryen-2bf3caae764689c606ae38353b1bad5fe28bf5bb.zip
Add getGeneralSuperType() that includes basic supers, and use in fuzzer (#6005)
With this, the fuzzer can replace e.g. an eq expression with a specific struct type, because now it is away that struct types have eq as their ancestor.
Diffstat (limited to 'src/tools/fuzzing/fuzzing.cpp')
-rw-r--r--src/tools/fuzzing/fuzzing.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/fuzzing/fuzzing.cpp b/src/tools/fuzzing/fuzzing.cpp
index 2e4d460f7..bdaf71e83 100644
--- a/src/tools/fuzzing/fuzzing.cpp
+++ b/src/tools/fuzzing/fuzzing.cpp
@@ -765,8 +765,7 @@ void TranslateToFuzzReader::recombine(Function* func) {
while (1) {
ret.push_back(Type(heapType, nullability));
- // TODO: handle basic supertypes too
- auto super = heapType.getDeclaredSuperType();
+ auto super = heapType.getSuperType();
if (!super) {
break;
}