summaryrefslogtreecommitdiff
path: root/lib/AsmParser/Parser.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2015-01-17 00:46:44 +0000
committerRichard Trieu <rtrieu@google.com>2015-01-17 00:46:44 +0000
commit6cf3f3fceb4ecc0e9ea2eef26b1ed13ef2b761d3 (patch)
treed1a090b1da90cf07e4dcbf49f8cf6d62add855cf /lib/AsmParser/Parser.cpp
parent0553dac91ff3858b6095dc7d43799d632bea43d5 (diff)
Remove std::move that was preventing return value optimization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226356 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/Parser.cpp')
-rw-r--r--lib/AsmParser/Parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/Parser.cpp b/lib/AsmParser/Parser.cpp
index 08159075ff6..ed1a7539852 100644
--- a/lib/AsmParser/Parser.cpp
+++ b/lib/AsmParser/Parser.cpp
@@ -38,7 +38,7 @@ std::unique_ptr<Module> llvm::parseAssembly(MemoryBufferRef F,
if (parseAssemblyInto(F, *M, Err))
return nullptr;
- return std::move(M);
+ return M;
}
std::unique_ptr<Module> llvm::parseAssemblyFile(StringRef Filename,