summaryrefslogtreecommitdiff
path: root/src/passes/CodePushing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/CodePushing.cpp')
-rw-r--r--src/passes/CodePushing.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/passes/CodePushing.cpp b/src/passes/CodePushing.cpp
index 5026773d4..c71078558 100644
--- a/src/passes/CodePushing.cpp
+++ b/src/passes/CodePushing.cpp
@@ -249,7 +249,9 @@ struct CodePushing : public WalkerPass<PostWalker<CodePushing>> {
// way), so validation will be preserved.
bool requiresNonNullableLocalFixups() override { return false; }
- Pass* create() override { return new CodePushing; }
+ std::unique_ptr<Pass> create() override {
+ return std::make_unique<CodePushing>();
+ }
LocalAnalyzer analyzer;