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.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/passes/Flatten.cpp b/src/passes/Flatten.cpp
index 771183d2c..e8dec3010 100644
--- a/src/passes/Flatten.cpp
+++ b/src/passes/Flatten.cpp
@@ -76,7 +76,9 @@ struct Flatten
// FIXME DWARF updating does not handle local changes yet.
bool invalidatesDWARF() override { return true; }
- Pass* create() override { return new Flatten; }
+ std::unique_ptr<Pass> create() override {
+ return std::make_unique<Flatten>();
+ }
// For each expression, a bunch of expressions that should execute right
// before it