summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-02-01 07:51:47 -0800
committerGitHub <noreply@github.com>2024-02-01 07:51:47 -0800
commit6c70fcdf246ba5619c75b56e2ffddd8256dfd857 (patch)
tree8f530c7cabfaeaba522c881ca2ca06744ab74427
parent76a422b1359855a62b4114686363695b7b5c6889 (diff)
downloadbinaryen-6c70fcdf246ba5619c75b56e2ffddd8256dfd857.tar.gz
binaryen-6c70fcdf246ba5619c75b56e2ffddd8256dfd857.tar.bz2
binaryen-6c70fcdf246ba5619c75b56e2ffddd8256dfd857.zip
Allow updating basic HeapTypes in GlobalTypeRewriter::mapTypes (#6266)
-rw-r--r--src/ir/type-updating.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/ir/type-updating.cpp b/src/ir/type-updating.cpp
index e9cf1859b..fb701f64a 100644
--- a/src/ir/type-updating.cpp
+++ b/src/ir/type-updating.cpp
@@ -176,9 +176,6 @@ void GlobalTypeRewriter::mapTypes(const TypeMap& oldToNewTypes) {
}
HeapType getNew(HeapType type) {
- if (type.isBasic()) {
- return type;
- }
auto iter = oldToNewTypes.find(type);
if (iter != oldToNewTypes.end()) {
return iter->second;