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.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index a70a96f17..02fc2a83b 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -877,6 +877,9 @@ struct PrintSExpression : public Visitor<PrintSExpression> {
emitImportHeader(curr);
if (curr->type.is()) {
visitFunctionType(currModule->getFunctionType(curr->type), &curr->name);
+ } else {
+ auto functionType = sigToFunctionType(getSig(curr));
+ visitFunctionType(&functionType, &curr->name);
}
o << ')';
o << maybeNewLine;