summaryrefslogtreecommitdiffstats
path: root/llvm/tools/lli/OrcLazyJIT.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2015-04-30 23:07:00 +0000
committerRichard Trieu <rtrieu@google.com>2015-04-30 23:07:00 +0000
commit6ae37961a8d8538d254e4e4aa1dc60026fe381a2 (patch)
treed482bdd17df2c6880c06c07bd186942303060cf3 /llvm/tools/lli/OrcLazyJIT.cpp
parent2e5d484597ff0ab232f8db03c5e2bb2933cdb88e (diff)
downloadbcm5719-llvm-6ae37961a8d8538d254e4e4aa1dc60026fe381a2.tar.gz
bcm5719-llvm-6ae37961a8d8538d254e4e4aa1dc60026fe381a2.zip
Fix -Wpessimizing-move warnings by removing std::move calls.
llvm-svn: 236278
Diffstat (limited to 'llvm/tools/lli/OrcLazyJIT.cpp')
-rw-r--r--llvm/tools/lli/OrcLazyJIT.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/lli/OrcLazyJIT.cpp b/llvm/tools/lli/OrcLazyJIT.cpp
index 88904e0af8e..bda5d6dcd26 100644
--- a/llvm/tools/lli/OrcLazyJIT.cpp
+++ b/llvm/tools/lli/OrcLazyJIT.cpp
@@ -62,7 +62,7 @@ OrcLazyJIT::TransformFtor OrcLazyJIT::createDebugDumper() {
switch (OrcDumpKind) {
case DumpKind::NoDump:
- return [](std::unique_ptr<Module> M) { return std::move(M); };
+ return [](std::unique_ptr<Module> M) { return M; };
case DumpKind::DumpFuncsToStdOut:
return [](std::unique_ptr<Module> M) {
@@ -80,7 +80,7 @@ OrcLazyJIT::TransformFtor OrcLazyJIT::createDebugDumper() {
}
printf("]\n");
- return std::move(M);
+ return M;
};
case DumpKind::DumpModsToStdErr:
@@ -88,7 +88,7 @@ OrcLazyJIT::TransformFtor OrcLazyJIT::createDebugDumper() {
dbgs() << "----- Module Start -----\n" << *M
<< "----- Module End -----\n";
- return std::move(M);
+ return M;
};
case DumpKind::DumpModsToDisk:
@@ -102,7 +102,7 @@ OrcLazyJIT::TransformFtor OrcLazyJIT::createDebugDumper() {
exit(1);
}
Out << *M;
- return std::move(M);
+ return M;
};
}
llvm_unreachable("Unknown DumpKind");
OpenPOWER on IntegriCloud