diff options
author | Alon Zakai <azakai@google.com> | 2021-04-14 13:45:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-14 13:45:28 -0700 |
commit | d4f8cd5ccabaaf2c55561548d88c075cfa4f765d (patch) | |
tree | fc21ffabfaa184ade6431e97668903dceef03130 /src/wasm | |
parent | d321458d57e6977ceaba90099e80b80cf6d472ed (diff) | |
download | binaryen-d4f8cd5ccabaaf2c55561548d88c075cfa4f765d.tar.gz binaryen-d4f8cd5ccabaaf2c55561548d88c075cfa4f765d.tar.bz2 binaryen-d4f8cd5ccabaaf2c55561548d88c075cfa4f765d.zip |
[Wasm GC] Do not inline a function with an RTT parameter (#3808)
Inlined parameters become locals, and rtts cannot be handled as locals, unlike
non-nullable values which we can at least fix up. So do not inline functions with
rtt params.
Diffstat (limited to 'src/wasm')
-rw-r--r-- | src/wasm/wasm-binary.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp index b7a04a324..ddb0ece90 100644 --- a/src/wasm/wasm-binary.cpp +++ b/src/wasm/wasm-binary.cpp @@ -2186,7 +2186,7 @@ void WasmBinaryBuilder::readFunctions() { } } - TypeUpdating::handleNonNullableLocals(func, wasm); + TypeUpdating::handleNonDefaultableLocals(func, wasm); std::swap(func->epilogLocation, debugLocation); currFunction = nullptr; |