diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-10-20 11:11:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-20 11:11:30 -0700 |
commit | 74d026b9afb7b11bf01639e900a382b32bacfb33 (patch) | |
tree | 89fa8acb6b69250fc30e01c2c76a6c6f3d0e6e0f /src/passes/Print.cpp | |
parent | 939706d9c4d7584a2a1c2627986f977512490058 (diff) | |
download | binaryen-74d026b9afb7b11bf01639e900a382b32bacfb33.tar.gz binaryen-74d026b9afb7b11bf01639e900a382b32bacfb33.tar.bz2 binaryen-74d026b9afb7b11bf01639e900a382b32bacfb33.zip |
Atomics support in interpreter + optimizer + fuzz fixes for that (#1227)
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 8bb5175ab..6d40034fc 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -352,7 +352,9 @@ struct PrintSExpression : public Visitor<PrintSExpression> { } static void printRMWSize(std::ostream& o, WasmType type, uint8_t bytes) { prepareColor(o) << printWasmType(type) << ".atomic.rmw"; - if (bytes != getWasmTypeSize(type)) { + if (type == unreachable) { + o << '?'; + } else if (bytes != getWasmTypeSize(type)) { if (bytes == 1) { o << '8'; } else if (bytes == 2) { |