summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-binary.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2021-03-10 10:39:53 -0800
committerGitHub <noreply@github.com>2021-03-10 10:39:53 -0800
commit9202df3864d2d8f09f191f61a964a08c30d10821 (patch)
tree23dd6bf77074a26eab7fea6f65cb14d41fb332f0 /src/wasm/wasm-binary.cpp
parent752d3080c3a648c86a2625067973870ca043cd77 (diff)
downloadbinaryen-9202df3864d2d8f09f191f61a964a08c30d10821.tar.gz
binaryen-9202df3864d2d8f09f191f61a964a08c30d10821.tar.bz2
binaryen-9202df3864d2d8f09f191f61a964a08c30d10821.zip
[Wasm GC] Fix RTT type parsing (#3672)
This was missing from #3663 Fixes #3656
Diffstat (limited to 'src/wasm/wasm-binary.cpp')
-rw-r--r--src/wasm/wasm-binary.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp
index 2eb8bdcde..1dac17e93 100644
--- a/src/wasm/wasm-binary.cpp
+++ b/src/wasm/wasm-binary.cpp
@@ -1648,11 +1648,11 @@ Type WasmBinaryBuilder::getType(int initial) {
return Type(getHeapType(), Nullable);
case BinaryConsts::EncodedType::rtt_n: {
auto depth = getU32LEB();
- auto heapType = getHeapType();
+ auto heapType = getIndexedHeapType();
return Type(Rtt(depth, heapType));
}
case BinaryConsts::EncodedType::rtt: {
- return Type(Rtt(getHeapType()));
+ return Type(Rtt(getIndexedHeapType()));
}
default:
throwError("invalid wasm type: " + std::to_string(initial));