summaryrefslogtreecommitdiff
path: root/src/passes/InstrumentLocals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/InstrumentLocals.cpp')
-rw-r--r--src/passes/InstrumentLocals.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/passes/InstrumentLocals.cpp b/src/passes/InstrumentLocals.cpp
index 4da41da17..9a8c34024 100644
--- a/src/passes/InstrumentLocals.cpp
+++ b/src/passes/InstrumentLocals.cpp
@@ -72,7 +72,8 @@ struct InstrumentLocals : public WalkerPass<PostWalker<InstrumentLocals>> {
case i64: return; // TODO
case f32: import = get_f32; break;
case f64: import = get_f64; break;
- default: WASM_UNREACHABLE();
+ case none: WASM_UNREACHABLE();
+ case unreachable: WASM_UNREACHABLE();
}
replaceCurrent(
builder.makeCall(
@@ -96,7 +97,7 @@ struct InstrumentLocals : public WalkerPass<PostWalker<InstrumentLocals>> {
case f32: import = set_f32; break;
case f64: import = set_f64; break;
case unreachable: return; // nothing to do here
- default: WASM_UNREACHABLE();
+ case none: WASM_UNREACHABLE();
}
curr->value = builder.makeCall(
import,