Skip to content

Commit 3bf7836

Browse files
kripkenradekdoulik
authored andcommitted
Allow updating basic HeapTypes in GlobalTypeRewriter::mapTypes (WebAssembly#6266)
1 parent 9c3fbc7 commit 3bf7836

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/ir/type-updating.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,6 @@ void GlobalTypeRewriter::mapTypes(const TypeMap& oldToNewTypes) {
176176
}
177177

178178
HeapType getNew(HeapType type) {
179-
if (type.isBasic()) {
180-
return type;
181-
}
182179
auto iter = oldToNewTypes.find(type);
183180
if (iter != oldToNewTypes.end()) {
184181
return iter->second;

0 commit comments

Comments
 (0)