summaryrefslogtreecommitdiff
path: root/src/wasm
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm')
-rw-r--r--src/wasm/wasm-type.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wasm/wasm-type.cpp b/src/wasm/wasm-type.cpp
index 64fd07759..e5493c8d1 100644
--- a/src/wasm/wasm-type.cpp
+++ b/src/wasm/wasm-type.cpp
@@ -1867,6 +1867,10 @@ std::ostream& TypePrinter::print(HeapType type) {
}
}
+ os << "(type ";
+ printHeapTypeName(type);
+ os << " ";
+
if (isTemp(type)) {
os << "(; temp ;) ";
}
@@ -1885,7 +1889,7 @@ std::ostream& TypePrinter::print(HeapType type) {
} else {
WASM_UNREACHABLE("unexpected type");
}
- return os;
+ return os << ")";
}
std::ostream& TypePrinter::print(const Tuple& tuple) {