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, 3 insertions, 1 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index fef4ac01d..e35d9b57e 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -447,7 +447,9 @@ struct PrintExpressionContents
prepareColor(o);
o << "memory.fill";
}
- void visitConst(Const* curr) { o << curr->value; }
+ void visitConst(Const* curr) {
+ o << curr->value.type << ".const " << curr->value;
+ }
void visitUnary(Unary* curr) {
prepareColor(o);
switch (curr->op) {