From 79d405b82b648cc406a12ce7164a4ef31279c67c Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 8 Feb 2016 10:54:19 -0800 Subject: update spec tests and shift to putting the br_if condition at the end, as was just changed to in the spec --- src/wasm.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/wasm.h') diff --git a/src/wasm.h b/src/wasm.h index 893c777c4..20a7b34ef 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -511,10 +511,8 @@ public: std::ostream& doPrint(std::ostream &o, unsigned indent) { if (condition) { - printOpening(o, "br_if"); + printOpening(o, "br_if ") << name; incIndent(o, indent); - printFullLine(o, indent, condition); - doIndent(o, indent) << name << '\n'; } else { printOpening(o, "br ") << name; if (!value || value->is()) { @@ -525,6 +523,9 @@ public: incIndent(o, indent); } if (value && !value->is()) printFullLine(o, indent, value); + if (condition) { + printFullLine(o, indent, condition); + } return decIndent(o, indent); } }; -- cgit v1.2.3