diff options
author | Michael Bebenita <mbebenita@gmail.com> | 2016-01-15 18:39:44 -0800 |
---|---|---|
committer | Michael Bebenita <mbebenita@gmail.com> | 2016-01-15 18:39:44 -0800 |
commit | 1021013aa7efdd6d071a8b053f87de846a6d30bd (patch) | |
tree | 4774819c358ec73eece3af5ff43b01eb659eb1eb /src/wasm.h | |
parent | 38d8e5d627f1694586e84f475a4879336cad9623 (diff) | |
download | binaryen-1021013aa7efdd6d071a8b053f87de846a6d30bd.tar.gz binaryen-1021013aa7efdd6d071a8b053f87de846a6d30bd.tar.bz2 binaryen-1021013aa7efdd6d071a8b053f87de846a6d30bd.zip |
Add unreachable macro for the default case.
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/wasm.h b/src/wasm.h index bccce50e5..bea294825 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -1201,10 +1201,7 @@ struct WasmVisitor { case Expression::Id::HostId: DELEGATE(Host); case Expression::Id::NopId: DELEGATE(Nop); case Expression::Id::UnreachableId: DELEGATE(Unreachable); - default: { - std::cerr << "visiting unknown expression " << curr->_id << '\n'; - abort(); - } + default: WASM_UNREACHABLE(); } } }; |