summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Bebenita <mbebenita@gmail.com>2016-01-15 18:39:44 -0800
committerMichael Bebenita <mbebenita@gmail.com>2016-01-15 18:39:44 -0800
commit1021013aa7efdd6d071a8b053f87de846a6d30bd (patch)
tree4774819c358ec73eece3af5ff43b01eb659eb1eb /src
parent38d8e5d627f1694586e84f475a4879336cad9623 (diff)
downloadbinaryen-1021013aa7efdd6d071a8b053f87de846a6d30bd.tar.gz
binaryen-1021013aa7efdd6d071a8b053f87de846a6d30bd.tar.bz2
binaryen-1021013aa7efdd6d071a8b053f87de846a6d30bd.zip
Add unreachable macro for the default case.
Diffstat (limited to 'src')
-rw-r--r--src/wasm.h5
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();
}
}
};