diff options
author | Alon Zakai <azakai@google.com> | 2024-02-01 07:51:47 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-01 07:51:47 -0800 |
commit | 6c70fcdf246ba5619c75b56e2ffddd8256dfd857 (patch) | |
tree | 8f530c7cabfaeaba522c881ca2ca06744ab74427 | |
parent | 76a422b1359855a62b4114686363695b7b5c6889 (diff) | |
download | binaryen-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.cpp | 3 |
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; |