diff options
Diffstat (limited to 'src/passes/OnceReduction.cpp')
-rw-r--r-- | src/passes/OnceReduction.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/passes/OnceReduction.cpp b/src/passes/OnceReduction.cpp index 73e221c69..83ee7378b 100644 --- a/src/passes/OnceReduction.cpp +++ b/src/passes/OnceReduction.cpp @@ -156,6 +156,9 @@ struct Scanner : public WalkerPass<PostWalker<Scanner>> { // foo$once = 1; // ... // + // TODO: if we generalize this to allow more conditions than just a + // global.get, this could be merged with + // SimplifyGlobals::GlobalUseScanner::visitFunction(). auto* block = body->dynCast<Block>(); if (!block) { return Name(); |