summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/MI
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2016-02-16 04:17:42 +0000
committerCraig Topper <craig.topper@gmail.com>2016-02-16 04:17:42 +0000
commitc46d3297df873b723ba67106af1f1de5d8fbc3bb (patch)
tree99790b8badee45596ee332fb9b305159a4a55bef /llvm/unittests/MI
parent62e0681afb478a4005efb6ba3598c24dc24866ee (diff)
downloadbcm5719-llvm-c46d3297df873b723ba67106af1f1de5d8fbc3bb.tar.gz
bcm5719-llvm-c46d3297df873b723ba67106af1f1de5d8fbc3bb.zip
Remove an unnecessary std::move to fix -Wpessimizing-move warning.
llvm-svn: 260931
Diffstat (limited to 'llvm/unittests/MI')
-rw-r--r--llvm/unittests/MI/LiveIntervalTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/MI/LiveIntervalTest.cpp b/llvm/unittests/MI/LiveIntervalTest.cpp
index 856d14e4c5e..64cf49a586c 100644
--- a/llvm/unittests/MI/LiveIntervalTest.cpp
+++ b/llvm/unittests/MI/LiveIntervalTest.cpp
@@ -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;
OpenPOWER on IntegriCloud