summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-03-21 16:55:00 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-03-21 16:55:00 -0700
commitc46ef0905565dfa9e24067a050d6c5095178c4ec (patch)
treea1c6a547e91cf05877139aee08e3fdcd96cf85dc /src/passes/Print.cpp
parentc34ed229b2df8bf4e8d0773917d0301c034980e3 (diff)
parent18ac67a3a23f4c54d4deab2d6621601662af899e (diff)
downloadbinaryen-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.cpp2
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;