diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-03-21 16:55:00 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-03-21 16:55:00 -0700 |
commit | c46ef0905565dfa9e24067a050d6c5095178c4ec (patch) | |
tree | a1c6a547e91cf05877139aee08e3fdcd96cf85dc /src/passes/Print.cpp | |
parent | c34ed229b2df8bf4e8d0773917d0301c034980e3 (diff) | |
parent | 18ac67a3a23f4c54d4deab2d6621601662af899e (diff) | |
download | binaryen-c46ef0905565dfa9e24067a050d6c5095178c4ec.tar.gz binaryen-c46ef0905565dfa9e24067a050d6c5095178c4ec.tar.bz2 binaryen-c46ef0905565dfa9e24067a050d6c5095178c4ec.zip |
Merge pull request #268 from WebAssembly/eqz-type
Update EqZ operators and support specifying memory size on the command line
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 0fdb4255f..77dcb6154 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -259,7 +259,7 @@ struct PrintSExpression : public WasmVisitor<PrintSExpression, void> { } void visitUnary(Unary *curr) { o << '('; - prepareColor(o) << printWasmType(curr->type) << '.'; + prepareColor(o) << printWasmType(curr->isRelational() ? curr->value->type : curr->type) << '.'; switch (curr->op) { case Clz: o << "clz"; break; case Ctz: o << "ctz"; break; |