diff options
Diffstat (limited to 'src/passes/RemoveUnusedNames.cpp')
-rw-r--r-- | src/passes/RemoveUnusedNames.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/passes/RemoveUnusedNames.cpp b/src/passes/RemoveUnusedNames.cpp index a08cb5eda..4c74245f0 100644 --- a/src/passes/RemoveUnusedNames.cpp +++ b/src/passes/RemoveUnusedNames.cpp @@ -31,6 +31,10 @@ struct RemoveUnusedNames UnifiedExpressionVisitor<RemoveUnusedNames>>> { bool isFunctionParallel() override { return true; } + // This pass only removes names, which can only help validation (as blocks + // without names are ignored, see the README section on non-nullable locals). + bool requiresNonNullableLocalFixups() override { return false; } + Pass* create() override { return new RemoveUnusedNames; } // We maintain a list of branches that we saw in children, then when we reach |