mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-30 16:21:30 +00:00
Apply clang-tidy's misc-move-constructor-init throughout LLVM.
No functionality change intended, maybe a tiny performance improvement. llvm-svn: 270997
This commit is contained in:
1 parent
cfeacf56f0
commit
82de7d323d
38 files changed
+139
-99
No files matched your search
@@ -37,6 +37,7 @@
|
||||
#include "llvm/Support/MemoryBuffer.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include <deque>
|
||||
#include <utility>
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
@@ -5713,13 +5714,13 @@ std::error_code ModuleSummaryIndexBitcodeReader::error(BitcodeError E) {
|
||||
ModuleSummaryIndexBitcodeReader::ModuleSummaryIndexBitcodeReader(
|
||||
MemoryBuffer *Buffer, DiagnosticHandlerFunction DiagnosticHandler,
|
||||
bool CheckGlobalValSummaryPresenceOnly)
|
||||
: DiagnosticHandler(DiagnosticHandler), Buffer(Buffer),
|
||||
: DiagnosticHandler(std::move(DiagnosticHandler)), Buffer(Buffer),
|
||||
CheckGlobalValSummaryPresenceOnly(CheckGlobalValSummaryPresenceOnly) {}
|
||||
|
||||
ModuleSummaryIndexBitcodeReader::ModuleSummaryIndexBitcodeReader(
|
||||
DiagnosticHandlerFunction DiagnosticHandler,
|
||||
bool CheckGlobalValSummaryPresenceOnly)
|
||||
: DiagnosticHandler(DiagnosticHandler), Buffer(nullptr),
|
||||
: DiagnosticHandler(std::move(DiagnosticHandler)), Buffer(nullptr),
|
||||
CheckGlobalValSummaryPresenceOnly(CheckGlobalValSummaryPresenceOnly) {}
|
||||
|
||||
void ModuleSummaryIndexBitcodeReader::freeState() { Buffer = nullptr; }
|
||||
|
||||
Reference in new issue
Block a user