mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-28 16:11:29 +00:00
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:
parent
61914d38dd
commit
456ee30036
@ -61,7 +61,7 @@ public:
|
||||
AnalysisConsumer->AddCheckerRegistrationFn([](CheckerRegistry &Registry) {
|
||||
Registry.addChecker<CustomChecker>("custom.CustomChecker", "Description");
|
||||
});
|
||||
return AnalysisConsumer;
|
||||
return std::move(AnalysisConsumer);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user