Skip to content

Commit cfbad5e

Browse files
committed
review: add TODO to remove extra check
1 parent 34fe4d5 commit cfbad5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/wasm-smith/src/core.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,8 @@ impl Module {
11071107
// shared type, though, we can use either a shared or unshared
11081108
// concrete type.
11091109
if let Some(ty) = self.types.get(idx as usize) {
1110+
// TODO: in the future, once we can easily query a list of
1111+
// existing shared types, remove this extra check.
11101112
if !(self.must_share && !ty.composite_type.shared) {
11111113
return Ok(HeapType::Concrete(idx));
11121114
}

0 commit comments

Comments
 (0)