summaryrefslogtreecommitdiff
path: root/src/passes/ConstHoisting.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/ConstHoisting.cpp')
-rw-r--r--src/passes/ConstHoisting.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/passes/ConstHoisting.cpp b/src/passes/ConstHoisting.cpp
index 08fede1df..9eb853878 100644
--- a/src/passes/ConstHoisting.cpp
+++ b/src/passes/ConstHoisting.cpp
@@ -97,9 +97,8 @@ private:
return false;
}
case none:
- case unreachable: {
- WASM_UNREACHABLE();
- }
+ case unreachable:
+ WASM_UNREACHABLE("unexpected type");
}
// compute the benefit, of replacing the uses with
// one use + a set and then a get for each use