summaryrefslogtreecommitdiff
path: root/src/tools/wasm-reduce.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/wasm-reduce.cpp')
-rw-r--r--src/tools/wasm-reduce.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/wasm-reduce.cpp b/src/tools/wasm-reduce.cpp
index eec1e0874..d92e0a93c 100644
--- a/src/tools/wasm-reduce.cpp
+++ b/src/tools/wasm-reduce.cpp
@@ -1293,9 +1293,10 @@ int main(int argc, const char* argv[]) {
}
if (getTypeSystem() == TypeSystem::Nominal) {
extraFlags += " --nominal";
- }
- if (getTypeSystem() == TypeSystem::Isorecursive) {
+ } else if (getTypeSystem() == TypeSystem::Isorecursive) {
extraFlags += " --hybrid";
+ } else {
+ WASM_UNREACHABLE("unexpected type system");
}
if (test.size() == 0) {