summaryrefslogtreecommitdiff
path: root/src/tools/fuzzing
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2023-07-06 15:08:12 -0400
committerGitHub <noreply@github.com>2023-07-06 19:08:12 +0000
commit195e18d0602108b18f305711f8ea1c902b729cb0 (patch)
tree578f1b0c26603c89f28fe99aa908d82c07863543 /src/tools/fuzzing
parent20a543b73d302cf773961fef5d1c281844127140 (diff)
downloadbinaryen-195e18d0602108b18f305711f8ea1c902b729cb0.tar.gz
binaryen-195e18d0602108b18f305711f8ea1c902b729cb0.tar.bz2
binaryen-195e18d0602108b18f305711f8ea1c902b729cb0.zip
[NFC] Fix the use of "strict" in subtypes.h (#5804)
Previously we incorrectly used "strict" to mean the immediate subtypes of a type, when in fact a strict subtype of a type is any subtype excluding the type itself. Rename the incorrect `getStrictSubTypes` to `getImmediateSubTypes`, rename the redundant `getAllStrictSubTypes` to `getStrictSubTypes`, and rename the redundant `getAllSubTypes` to `getSubTypes`. Fixing the capitalization of "SubType" to "Subtype" is left as future work.
Diffstat (limited to 'src/tools/fuzzing')
-rw-r--r--src/tools/fuzzing/fuzzing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/fuzzing/fuzzing.cpp b/src/tools/fuzzing/fuzzing.cpp
index 3fb8c1ea5..7bfd07854 100644
--- a/src/tools/fuzzing/fuzzing.cpp
+++ b/src/tools/fuzzing/fuzzing.cpp
@@ -279,7 +279,7 @@ void TranslateToFuzzReader::setupHeapTypes() {
// now, rather than lazily later.
SubTypes subTypes(interestingHeapTypes);
for (auto type : interestingHeapTypes) {
- for (auto subType : subTypes.getStrictSubTypes(type)) {
+ for (auto subType : subTypes.getImmediateSubTypes(type)) {
interestingHeapSubTypes[type].push_back(subType);
}
// Basic types must be handled directly, since subTypes doesn't look at