From 0b866305ecee485ec5ef2a314fe79ac2df52b21a Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 29 Oct 2015 20:21:26 -0700 Subject: fix unary printing --- src/wasm.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/wasm.h b/src/wasm.h index a978e71ca..45c557d7b 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -567,7 +567,9 @@ public: Expression *value; std::ostream& print(std::ostream &o, unsigned indent) override { - printOpening(o, "unary "); + o << '('; + prepareColor(o); + printBasicType(o, type) << '.'; switch (op) { case Clz: o << "clz"; break; case Neg: o << "neg"; break; -- cgit v1.2.3