diff --git a/clang-tools-extra/clang-move/tool/ClangMoveMain.cpp b/clang-tools-extra/clang-move/tool/ClangMoveMain.cpp index 6a9676ec2e3e..2c898420ca21 100644 --- a/clang-tools-extra/clang-move/tool/ClangMoveMain.cpp +++ b/clang-tools-extra/clang-move/tool/ClangMoveMain.cpp @@ -127,10 +127,9 @@ int main(int argc, const char **argv) { move::ClangMoveContext Context{Spec, Tool.getReplacements(), InitialDirectory.str(), Style, DumpDecls}; move::DeclarationReporter Reporter; - auto Factory = llvm::make_unique( - &Context, &Reporter); - - int CodeStatus = Tool.run(Factory.get()); + move::ClangMoveActionFactory Factory(&Context, &Reporter); + + int CodeStatus = Tool.run(&Factory); if (CodeStatus) return CodeStatus;