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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/Flatten.cpp b/src/passes/Flatten.cpp
index c8f731d64..298b6241e 100644
--- a/src/passes/Flatten.cpp
+++ b/src/passes/Flatten.cpp
@@ -337,7 +337,7 @@ struct Flatten
// the body may have preludes
curr->body = getPreludesWithExpression(originalBody, curr->body);
// New locals we added may be non-nullable.
- TypeUpdating::handleNonNullableLocals(curr, *getModule());
+ 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) {