summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Bebenita <mbebenita@gmail.com>2016-01-14 17:21:29 -0800
committerMichael Bebenita <mbebenita@gmail.com>2016-01-14 17:21:29 -0800
commit38d8e5d627f1694586e84f475a4879336cad9623 (patch)
tree35f382011db1288a3dc2474beb10508c1f1207cb /src
parent4c0f7e27bfff16daf610463c326f3a11b36d7e6e (diff)
downloadbinaryen-38d8e5d627f1694586e84f475a4879336cad9623.tar.gz
binaryen-38d8e5d627f1694586e84f475a4879336cad9623.tar.bz2
binaryen-38d8e5d627f1694586e84f475a4879336cad9623.zip
Add default case so that GCC doesn't complain.
Diffstat (limited to 'src')
-rw-r--r--src/wasm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h
index 72ebe98ee..bccce50e5 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -1201,6 +1201,10 @@ 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();
+ }
}
}
};