diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2018-06-28 13:31:36 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2018-06-28 13:31:36 +0000 |
commit | 456ee300364f4eb3337b679866bf4d84051c4556 (patch) | |
tree | c91da0e800fdf469d1bf78171490b45fcdf2febe /clang/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp | |
parent | 61914d38dd5a0f1866d911a408d5070089379213 (diff) | |
download | bcm5719-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.cpp | 2 |
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); } }; |