summaryrefslogtreecommitdiff
path: root/src/wasm-type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-type.h')
-rw-r--r--src/wasm-type.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wasm-type.h b/src/wasm-type.h
index 778318794..940009cbe 100644
--- a/src/wasm-type.h
+++ b/src/wasm-type.h
@@ -599,9 +599,9 @@ struct TypeBuilder {
Type getTempRefType(HeapType heapType, Nullability nullable);
// In nominal mode, or for nominal types, declare the HeapType being built at
- // index `i` to be an immediate subtype of the HeapType being built at index
- // `j`. Does nothing for equirecursive types.
- void setSubType(size_t i, size_t j);
+ // index `i` to be an immediate subtype of the given HeapType. Does nothing
+ // for equirecursive types.
+ void setSubType(size_t i, HeapType super);
// Create a new recursion group covering slots [i, i + length). Groups must
// not overlap or go out of bounds.
@@ -669,7 +669,7 @@ struct TypeBuilder {
}
Entry& subTypeOf(Entry other) {
assert(&builder == &other.builder);
- builder.setSubType(index, other.index);
+ builder.setSubType(index, other);
return *this;
}
};