summaryrefslogtreecommitdiffstats
path: root/unittests
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2018-06-28 13:31:36 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2018-06-28 13:31:36 +0000
commit28e87abe7b2c06bdbe39b267ec671477b982d084 (patch)
tree45a1edb31251d882681d7b76b1f34271feadc07b /unittests
parent29cdecbf6913d7ddbe26d55e029d96094ae1b0b3 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335854 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp b/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp
index 82887a1daf..dcd115e596 100644
--- a/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp
+++ b/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp
@@ -61,7 +61,7 @@ public:
AnalysisConsumer->AddCheckerRegistrationFn([](CheckerRegistry &Registry) {
Registry.addChecker<CustomChecker>("custom.CustomChecker", "Description");
});
- return AnalysisConsumer;
+ return std::move(AnalysisConsumer);
}
};