From 9581d47706f7432b7d77482e230387771736ab23 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Mon, 20 Apr 2026 09:26:38 -0700 Subject: [PATCH] [NFC] Remove redundant code from bad merge 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. --- src/ir/properties.h | 19 ------------------- 1 file changed, 19 deletions(-) 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; }