From 884c1de0f6dd282881029f03525c1bc8b93c134c Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 9 Nov 2015 17:16:29 -0800 Subject: print if-else --- src/wasm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/wasm.h b/src/wasm.h index 9ed89df55..0fd014a47 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -320,7 +320,7 @@ public: Expression *condition, *ifTrue, *ifFalse; std::ostream& doPrint(std::ostream &o, unsigned indent) { - printOpening(o, "if"); + printOpening(o, ifFalse ? "if_else" : "if"); incIndent(o, indent); printFullLine(o, indent, condition); printFullLine(o, indent, ifTrue); -- cgit v1.2.3