diff options
author | Alon Zakai <azakai@google.com> | 2021-03-12 11:29:40 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-12 11:29:40 -0800 |
commit | 486f2611be3aefae0079de3c566474c9ed87a320 (patch) | |
tree | 45d4ca12886692c1684fa3127160eb19332299a4 /src | |
parent | b98dce24827e006e9527ec50642ba77dfada662a (diff) | |
download | binaryen-486f2611be3aefae0079de3c566474c9ed87a320.tar.gz binaryen-486f2611be3aefae0079de3c566474c9ed87a320.tar.bz2 binaryen-486f2611be3aefae0079de3c566474c9ed87a320.zip |
[Wasm GC] Avoid std::map<Type,..> in mapLocals (#3683)
Works around #3682 With this, I can roundtrip
a large real-world testcase.
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm/wasm-stack.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm-stack.cpp b/src/wasm/wasm-stack.cpp index 2c8bc051f..b1e9a75cc 100644 --- a/src/wasm/wasm-stack.cpp +++ b/src/wasm/wasm-stack.cpp @@ -2170,7 +2170,7 @@ void BinaryInstWriter::mapLocalsAndEmitHeader() { } } countScratchLocals(); - std::map<Type, size_t> currLocalsByType; + std::unordered_map<Type, size_t> currLocalsByType; for (Index i = func->getVarIndexBase(); i < func->getNumLocals(); i++) { Index j = 0; for (const auto& type : func->getLocalType(i)) { |