[llvm] r211597 - Replace two release calls with std::move. I missed this on the previous commit.
Rafael Espindola
rafael.espindola at gmail.com
Tue Jun 24 07:25:17 PDT 2014
Author: rafael
Date: Tue Jun 24 09:25:17 2014
New Revision: 211597
URL: http://llvm.org/viewvc/llvm-project?rev=211597&view=rev
Log:
Replace two release calls with std::move. I missed this on the previous commit.
Modified:
llvm/trunk/lib/Object/ELFObjectFile.cpp
Modified: llvm/trunk/lib/Object/ELFObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/ELFObjectFile.cpp?rev=211597&r1=211596&r2=211597&view=diff
==============================================================================
--- llvm/trunk/lib/Object/ELFObjectFile.cpp (original)
+++ llvm/trunk/lib/Object/ELFObjectFile.cpp Tue Jun 24 09:25:17 2014
@@ -29,7 +29,7 @@ ObjectFile::createELFObjectFile(std::uni
#if !LLVM_IS_UNALIGNED_ACCESS_FAST
if (MaxAlignment >= 4)
R.reset(new ELFObjectFile<ELFType<support::little, 4, false>>(
- Obj.release(), EC));
+ std::move(Obj), EC));
else
#endif
if (MaxAlignment >= 2)
@@ -40,7 +40,7 @@ ObjectFile::createELFObjectFile(std::uni
else if (Ident.first == ELF::ELFCLASS32 && Ident.second == ELF::ELFDATA2MSB)
#if !LLVM_IS_UNALIGNED_ACCESS_FAST
if (MaxAlignment >= 4)
- R.reset(new ELFObjectFile<ELFType<support::big, 4, false>>(Obj.release(),
+ R.reset(new ELFObjectFile<ELFType<support::big, 4, false>>(std::move(Obj),
EC));
else
#endif
More information about the llvm-commits
mailing list