summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-05-27 14:27:13 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-05-27 14:27:13 +0000
commitcfeacf56f03e5ce8bfb32537d64935b2f58e19ee (patch)
treeb696d27cbd95b40df1221c603b81cb300fc69aae /clang/lib/Frontend/CompilerInstance.cpp
parent4ccda502d5c63e13e5f6777cfc1570b5d585b841 (diff)
downloadbcm5719-llvm-cfeacf56f03e5ce8bfb32537d64935b2f58e19ee.tar.gz
bcm5719-llvm-cfeacf56f03e5ce8bfb32537d64935b2f58e19ee.zip
Apply clang-tidy's misc-move-constructor-init throughout Clang.
No functionality change intended, maybe a tiny performance improvement. llvm-svn: 270996
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index d6f4749db24..5648b90be80 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -48,6 +48,7 @@
#include <sys/stat.h>
#include <system_error>
#include <time.h>
+#include <utility>
using namespace clang;
@@ -55,7 +56,8 @@ CompilerInstance::CompilerInstance(
std::shared_ptr<PCHContainerOperations> PCHContainerOps,
bool BuildingModule)
: ModuleLoader(BuildingModule), Invocation(new CompilerInvocation()),
- ModuleManager(nullptr), ThePCHContainerOperations(PCHContainerOps),
+ ModuleManager(nullptr),
+ ThePCHContainerOperations(std::move(PCHContainerOps)),
BuildGlobalModuleIndex(false), HaveFullGlobalModuleIndex(false),
ModuleBuildFailed(false) {}
OpenPOWER on IntegriCloud