summaryrefslogtreecommitdiff
path: root/src/ir/hashed.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/hashed.h')
-rw-r--r--src/ir/hashed.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ir/hashed.h b/src/ir/hashed.h
index 060fea453..4e90951f5 100644
--- a/src/ir/hashed.h
+++ b/src/ir/hashed.h
@@ -38,8 +38,8 @@ struct FunctionHasher : public WalkerPass<PostWalker<FunctionHasher>> {
FunctionHasher(Map* output)
: output(output), customHasher(ExpressionAnalyzer::nothingHasher) {}
- FunctionHasher* create() override {
- return new FunctionHasher(output, customHasher);
+ std::unique_ptr<Pass> create() override {
+ return std::make_unique<FunctionHasher>(output, customHasher);
}
static Map createMap(Module* module) {