summaryrefslogtreecommitdiff
path: root/src/wat-writer.cc
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2020-07-24 13:06:45 -0700
committerGitHub <noreply@github.com>2020-07-24 13:06:45 -0700
commitf414678326964001e4009daf58274006900d2f14 (patch)
tree225d1d14ec419e16b80d0df6d8460573da972bc0 /src/wat-writer.cc
parent5140e96ea42eca9dafd28bb43ca1e93a604a08c2 (diff)
downloadwabt-f414678326964001e4009daf58274006900d2f14.tar.gz
wabt-f414678326964001e4009daf58274006900d2f14.tar.bz2
wabt-f414678326964001e4009daf58274006900d2f14.zip
Print newline after ref.is_null instruction (#1495)
Diffstat (limited to 'src/wat-writer.cc')
-rw-r--r--src/wat-writer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wat-writer.cc b/src/wat-writer.cc
index 6bdc9f9e..81d379d1 100644
--- a/src/wat-writer.cc
+++ b/src/wat-writer.cc
@@ -823,7 +823,7 @@ Result WatWriter::ExprVisitorDelegate::OnRefNullExpr(RefNullExpr* expr) {
}
Result WatWriter::ExprVisitorDelegate::OnRefIsNullExpr(RefIsNullExpr* expr) {
- writer_->WritePutsSpace(Opcode::RefIsNull_Opcode.GetName());
+ writer_->WritePutsNewline(Opcode::RefIsNull_Opcode.GetName());
return Result::Ok;
}