diff --git a/src/ir/properties.h b/src/ir/properties.h index dbfa313af09..4b4126d750d 100644 --- a/src/ir/properties.h +++ b/src/ir/properties.h @@ -570,25 +570,6 @@ inline bool hasUnwritableTypeImmediate(Expression* curr) { #include "wasm-delegations-fields.def" - if (curr->type == Type::unreachable) { - if (curr->is() || curr->is() || - curr->is() || curr->is() || - curr->is() || curr->is() || - curr->is()) { - return true; - } - if (auto* cast = curr->dynCast()) { - if (!cast->desc) { - return true; - } - if (!cast->desc->type.isRef()) { - return true; - } - if (!cast->desc->type.getHeapType().getDescribedType()) { - return true; - }; - } - } return false; }