summaryrefslogtreecommitdiff
path: root/src/wasm
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/wasm
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/wasm')
-rw-r--r--src/wasm/wasm-binary.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp
index 4d51e0f43..d9b7e1a84 100644
--- a/src/wasm/wasm-binary.cpp
+++ b/src/wasm/wasm-binary.cpp
@@ -226,8 +226,7 @@ void WasmBinaryWriter::writeTypes() {
return;
}
// Count the number of recursion groups, which is the number of elements in
- // the type section. With nominal typing there is always one group and with
- // equirecursive typing there is one group per type.
+ // the type section.
size_t numGroups = 0;
{
std::optional<RecGroup> lastGroup;