From 9202df3864d2d8f09f191f61a964a08c30d10821 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 10 Mar 2021 10:39:53 -0800 Subject: [Wasm GC] Fix RTT type parsing (#3672) This was missing from #3663 Fixes #3656 --- src/wasm/wasm-binary.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wasm/wasm-binary.cpp') 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)); -- cgit v1.2.3