summaryrefslogtreecommitdiffstats
path: root/clang/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp
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
commit456ee300364f4eb3337b679866bf4d84051c4556 (patch)
treec91da0e800fdf469d1bf78171490b45fcdf2febe /clang/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp
parent61914d38dd5a0f1866d911a408d5070089379213 (diff)
downloadbcm5719-llvm-456ee300364f4eb3337b679866bf4d84051c4556.tar.gz
bcm5719-llvm-456ee300364f4eb3337b679866bf4d84051c4556.zip
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
Diffstat (limited to 'clang/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp')
-rw-r--r--clang/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp b/clang/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp
index 82887a1daf3..dcd115e5963 100644
--- a/clang/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp
+++ b/clang/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);
}
};
OpenPOWER on IntegriCloud