Fix unittest build with GCC older than 5.

Old GCCs have an annoying bug where RVO disables the automatic
conversion to base for unique_ptr. Add a pessimizing std::move as a
workaround.

llvm-svn: 335854
This commit is contained in:
Benjamin Kramer 2018-06-28 13:31:36 +00:00
parent 61914d38dd
commit 456ee30036
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ public:
AnalysisConsumer->AddCheckerRegistrationFn([](CheckerRegistry &Registry) {
Registry.addChecker<CustomChecker>("custom.CustomChecker", "Description");
});
return AnalysisConsumer;
return std::move(AnalysisConsumer);
}
};