Skip to content

Commit b3650ea

Browse files
authored
[NFC] Remove redundant code from bad merge (#8627)
When #8617 landed, it introduced this code from an out-of-date version of #8616. The code had been moved in such a way that the merge kept both old and new versions instead of creating a merge conflict. Remove the outdated code.
1 parent 0f4d388 commit b3650ea

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/ir/properties.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -570,25 +570,6 @@ inline bool hasUnwritableTypeImmediate(Expression* curr) {
570570

571571
#include "wasm-delegations-fields.def"
572572

573-
if (curr->type == Type::unreachable) {
574-
if (curr->is<StructNew>() || curr->is<ArrayNew>() ||
575-
curr->is<ArrayNewData>() || curr->is<ArrayNewElem>() ||
576-
curr->is<ArrayNewFixed>() || curr->is<ContNew>() ||
577-
curr->is<ContBind>()) {
578-
return true;
579-
}
580-
if (auto* cast = curr->dynCast<RefCast>()) {
581-
if (!cast->desc) {
582-
return true;
583-
}
584-
if (!cast->desc->type.isRef()) {
585-
return true;
586-
}
587-
if (!cast->desc->type.getHeapType().getDescribedType()) {
588-
return true;
589-
};
590-
}
591-
}
592573
return false;
593574
}
594575

0 commit comments

Comments
 (0)