summaryrefslogtreecommitdiff
path: root/src/wasm/wasm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm.cpp')
-rw-r--r--src/wasm/wasm.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp
index 8565bfaa5..19ba5f265 100644
--- a/src/wasm/wasm.cpp
+++ b/src/wasm/wasm.cpp
@@ -818,6 +818,13 @@ void RefEq::finalize() {
}
}
+void TableGet::finalize() {
+ if (index->type == Type::unreachable) {
+ type = Type::unreachable;
+ }
+ // Otherwise, the type should have been set already.
+}
+
void Try::finalize() {
// If none of the component bodies' type is a supertype of the others, assume
// the current type is already correct. TODO: Calculate a proper LUB.