Skip to content

Commit ee5fd0d

Browse files
tlivelykripken
andcommitted
Update src/wasm-type.h
Co-authored-by: Alon Zakai <azakai@google.com>
1 parent 2f29516 commit ee5fd0d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wasm-type.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,8 @@ class HeapType {
385385

386386
Shareability getShared() const;
387387

388+
// Check if the type is a given basic heap type, while ignoring whether it is
389+
// shared or not.
388390
bool isMaybeShared(BasicHeapType type) {
389391
return isBasic() && getBasic(Unshared) == type;
390392
}

0 commit comments

Comments
 (0)