summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r--src/passes/Print.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index 2ebf73638..0d74d43f1 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -2953,6 +2953,10 @@ struct PrintSExpression : public UnifiedExpressionVisitor<PrintSExpression> {
}
if (name.is()) {
o << " $" << name;
+ if (currModule && currModule->features.hasGC()) {
+ o << " (type ";
+ printHeapType(o, curr, currModule) << ')';
+ }
}
if (sig.params.size() > 0) {
o << maybeSpace;