summaryrefslogtreecommitdiff
path: root/src/wasm
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm')
-rw-r--r--src/wasm/wasm-type.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/wasm/wasm-type.cpp b/src/wasm/wasm-type.cpp
index a27cbabc6..043796ff0 100644
--- a/src/wasm/wasm-type.cpp
+++ b/src/wasm/wasm-type.cpp
@@ -531,13 +531,9 @@ HeapType Type::getHeapType() const {
}
WASM_UNREACHABLE("Unexpected type");
}
- if (isRtt()) {
- return getRtt().heapType;
- }
- WASM_UNREACHABLE("unexpected type");
}
-const Rtt& Type::getRtt() const {
+Rtt Type::getRtt() const {
assert(isRtt());
return getTypeInfo(*this)->rtt;
}