We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 423ed28 commit 78e8a97Copy full SHA for 78e8a97
src/wasm/wasm-binary.cpp
@@ -955,15 +955,13 @@ void WasmBinaryWriter::finishUp() {
955
void WasmBinaryWriter::writeType(Type type) {
956
if (type.isRef()) {
957
auto heapType = type.getHeapType();
958
- if (heapType.isSignature()) {
959
- if (type.isNullable()) {
960
- o << S32LEB(BinaryConsts::EncodedType::nullable);
961
- } else {
962
- o << S32LEB(BinaryConsts::EncodedType::nonnullable);
963
- }
964
- writeHeapType(heapType);
965
- return;
+ if (type.isNullable()) {
+ o << S32LEB(BinaryConsts::EncodedType::nullable);
+ } else {
+ o << S32LEB(BinaryConsts::EncodedType::nonnullable);
966
}
+ writeHeapType(heapType);
+ return;
967
968
int ret = 0;
969
TODO_SINGLE_COMPOUND(type);
0 commit comments