[llvm] r260931 - Remove an unnecessary std::move to fix -Wpessimizing-move warning.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 15 20:17:42 PST 2016
Author: ctopper
Date: Mon Feb 15 22:17:42 2016
New Revision: 260931
URL: http://llvm.org/viewvc/llvm-project?rev=260931&view=rev
Log:
Remove an unnecessary std::move to fix -Wpessimizing-move warning.
Modified:
llvm/trunk/unittests/MI/LiveIntervalTest.cpp
Modified: llvm/trunk/unittests/MI/LiveIntervalTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/MI/LiveIntervalTest.cpp?rev=260931&r1=260930&r2=260931&view=diff
==============================================================================
--- llvm/trunk/unittests/MI/LiveIntervalTest.cpp (original)
+++ llvm/trunk/unittests/MI/LiveIntervalTest.cpp Mon Feb 15 22:17:42 2016
@@ -57,7 +57,7 @@ std::unique_ptr<Module> parseMIR(legacy:
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;
More information about the llvm-commits
mailing list