summaryrefslogtreecommitdiff
path: root/src/passes/AvoidReinterprets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/AvoidReinterprets.cpp')
-rw-r--r--src/passes/AvoidReinterprets.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/passes/AvoidReinterprets.cpp b/src/passes/AvoidReinterprets.cpp
index feea4871f..3f4795303 100644
--- a/src/passes/AvoidReinterprets.cpp
+++ b/src/passes/AvoidReinterprets.cpp
@@ -76,7 +76,9 @@ static bool isReinterpret(Unary* curr) {
struct AvoidReinterprets : public WalkerPass<PostWalker<AvoidReinterprets>> {
bool isFunctionParallel() override { return true; }
- Pass* create() override { return new AvoidReinterprets; }
+ std::unique_ptr<Pass> create() override {
+ return std::make_unique<AvoidReinterprets>();
+ }
struct Info {
// Info used when analyzing.