Remove an unnecessary std::move to fix -Wpessimizing-move warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260931 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper 2016-02-16 04:17:42 +00:00
parent 33543a37a7
commit 86b7e4c701

View File

@ -57,7 +57,7 @@ std::unique_ptr<Module> parseMIR(legacy::PassManagerBase &PM,
SMDiagnostic Diagnostic;
std::unique_ptr<MemoryBuffer> MBuffer = MemoryBuffer::getMemBuffer(MIRCode);
MIR = std::move(createMIRParser(std::move(MBuffer), Context));
MIR = createMIRParser(std::move(MBuffer), Context);
if (!MIR)
return nullptr;