summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/passes/Flatten.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/passes/Flatten.cpp b/src/passes/Flatten.cpp
index 9139d5dca..55ee00936 100644
--- a/src/passes/Flatten.cpp
+++ b/src/passes/Flatten.cpp
@@ -62,9 +62,8 @@ struct Flatten
std::vector<Expression*> ourPreludes;
Builder builder(*getModule());
- // Nothing to do for constants, nop, and unreachable
- if (Properties::isConstantExpression(curr) || curr->is<Nop>() ||
- curr->is<Unreachable>()) {
+ // Nothing to do for constants and nop.
+ if (Properties::isConstantExpression(curr) || curr->is<Nop>()) {
return;
}