summaryrefslogtreecommitdiff
path: root/src/ir/drop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/drop.cpp')
-rw-r--r--src/ir/drop.cpp2
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;
}