summaryrefslogtreecommitdiff
path: root/src/passes/SpillPointers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/SpillPointers.cpp')
-rw-r--r--src/passes/SpillPointers.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/passes/SpillPointers.cpp b/src/passes/SpillPointers.cpp
index 04193c2d2..991a7b8c1 100644
--- a/src/passes/SpillPointers.cpp
+++ b/src/passes/SpillPointers.cpp
@@ -37,7 +37,9 @@ struct SpillPointers
: public WalkerPass<LivenessWalker<SpillPointers, Visitor<SpillPointers>>> {
bool isFunctionParallel() override { return true; }
- Pass* create() override { return new SpillPointers; }
+ std::unique_ptr<Pass> create() override {
+ return std::make_unique<SpillPointers>();
+ }
// a mapping of the pointers to all the spillable things. We need to know
// how to replace them, and as we spill we may modify them. This map