summaryrefslogtreecommitdiff
path: root/src/wasm/literal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/literal.cpp')
-rw-r--r--src/wasm/literal.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wasm/literal.cpp b/src/wasm/literal.cpp
index 8beae78bd..131a6d443 100644
--- a/src/wasm/literal.cpp
+++ b/src/wasm/literal.cpp
@@ -495,7 +495,9 @@ std::ostream& operator<<(std::ostream& o, Literal literal) {
if (literal.isData()) {
auto data = literal.getGCData();
if (data) {
- o << "[ref " << data->rtt << ' ' << data->values << ']';
+ o << "[ref ";
+ std::visit([&](auto& info) { o << info; }, data->typeInfo);
+ o << ' ' << data->values << ']';
} else {
o << "[ref null " << literal.type << ']';
}