summaryrefslogtreecommitdiff
path: root/src/passes/RedundantSetElimination.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/RedundantSetElimination.cpp')
-rw-r--r--src/passes/RedundantSetElimination.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/passes/RedundantSetElimination.cpp b/src/passes/RedundantSetElimination.cpp
index a63866111..8c00a0880 100644
--- a/src/passes/RedundantSetElimination.cpp
+++ b/src/passes/RedundantSetElimination.cpp
@@ -49,6 +49,8 @@ namespace wasm {
// its current value
typedef std::vector<Index> LocalValues;
+namespace {
+
// information in a basic block
struct Info {
LocalValues start, end; // the local values at the start and end of the block
@@ -366,6 +368,8 @@ struct RedundantSetElimination : public WalkerPass<CFGWalker<RedundantSetElimina
}
};
+} // namespace
+
Pass *createRedundantSetEliminationPass() {
return new RedundantSetElimination();
}