diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-05-27 14:27:13 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-05-27 14:27:13 +0000 |
| commit | 4ff480f17cff1d8d1b366fba7123493498c7667b (patch) | |
| tree | 524edb3cf67c1a147821d0e814ef821e42a68cf0 /lib/CodeGen/ObjectFilePCHContainerOperations.cpp | |
| parent | 9d37176cc4a13a6c3644dcfd99819a000e2ba361 (diff) | |
| download | clang-4ff480f17cff1d8d1b366fba7123493498c7667b.tar.gz | |
Apply clang-tidy's misc-move-constructor-init throughout Clang.
No functionality change intended, maybe a tiny performance improvement.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@270996 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
| -rw-r--r-- | lib/CodeGen/ObjectFilePCHContainerOperations.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/ObjectFilePCHContainerOperations.cpp b/lib/CodeGen/ObjectFilePCHContainerOperations.cpp index 2fa390279a..bdb4f67e73 100644 --- a/lib/CodeGen/ObjectFilePCHContainerOperations.cpp +++ b/lib/CodeGen/ObjectFilePCHContainerOperations.cpp @@ -34,6 +34,7 @@ #include "llvm/Support/Path.h" #include "llvm/Support/TargetRegistry.h" #include <memory> +#include <utility> using namespace clang; @@ -145,7 +146,7 @@ public: HeaderSearchOpts(CI.getHeaderSearchOpts()), PreprocessorOpts(CI.getPreprocessorOpts()), TargetOpts(CI.getTargetOpts()), LangOpts(CI.getLangOpts()), OS(OS), - Buffer(Buffer) { + Buffer(std::move(Buffer)) { // The debug info output isn't affected by CodeModel and // ThreadModel, but the backend expects them to be nonempty. CodeGenOpts.CodeModel = "default"; |
