summaryrefslogtreecommitdiff
path: root/src/passes/Flatten.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Flatten.cpp')
-rw-r--r--src/passes/Flatten.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/passes/Flatten.cpp b/src/passes/Flatten.cpp
index be43e57f2..771183d2c 100644
--- a/src/passes/Flatten.cpp
+++ b/src/passes/Flatten.cpp
@@ -44,7 +44,6 @@
#include <ir/eh-utils.h>
#include <ir/flat.h>
#include <ir/properties.h>
-#include <ir/type-updating.h>
#include <ir/utils.h>
#include <pass.h>
#include <wasm-builder.h>
@@ -368,17 +367,6 @@ struct Flatten
}
// the body may have preludes
curr->body = getPreludesWithExpression(originalBody, curr->body);
- // New locals we added may be non-nullable.
- TypeUpdating::handleNonDefaultableLocals(curr, *getModule());
- // We cannot handle non-nullable tuples currently, see the comment at the
- // top of the file.
- for (auto type : curr->vars) {
- if (!type.isDefaultable()) {
- Fatal() << "Flatten was forced to add a local of a type it cannot "
- "handle yet: "
- << type;
- }
- }
// Flatten can generate blocks within 'catch', making pops invalid. Fix them
// up.