Skip to content

Commit 87bc57f

Browse files
committed
comment on exactness
1 parent 9785244 commit 87bc57f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/wasm-type.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,7 @@ struct TypeBuilder {
835835
assert(t.isRef());
836836
auto mapped = map(t.getHeapType());
837837
auto null = t.getNullability();
838+
// References to basic heap types cannot be exact.
838839
auto exact = mapped.isBasic() ? Inexact : t.getExactness();
839840
return getTempRefType(mapped, null, exact);
840841
};

0 commit comments

Comments
 (0)