diff options
Diffstat (limited to 'src/ir/drop.cpp')
-rw-r--r-- | src/ir/drop.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir/drop.cpp b/src/ir/drop.cpp index 14ab43794..d033c0876 100644 --- a/src/ir/drop.cpp +++ b/src/ir/drop.cpp @@ -44,7 +44,7 @@ Expression* getDroppedChildrenAndAppend(Expression* curr, // effects would never help us (and would be slower to run). ShallowEffectAnalyzer effects(options, wasm, curr); // Ignore a trap, as the unreachable replacement would trap too. - if (last->type == Type::unreachable) { + if (last->is<Unreachable>()) { effects.trap = false; } |