Index: unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp =================================================================== --- unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp +++ unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp @@ -61,7 +61,7 @@ AnalysisConsumer->AddCheckerRegistrationFn([](CheckerRegistry &Registry) { Registry.addChecker("custom.CustomChecker", "Description"); }); - return AnalysisConsumer; + return std::unique_ptr(AnalysisConsumer.release()); } };