From: Rafael Espindola Date: Tue, 24 Jun 2014 14:25:17 +0000 (+0000) Subject: Replace two release calls with std::move. I missed this on the previous commit. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8659ad443a9f56726e9d356ef98396654dbd9e91;p=oota-llvm.git Replace two release calls with std::move. I missed this on the previous commit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211597 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Object/ELFObjectFile.cpp b/lib/Object/ELFObjectFile.cpp index 7095caf1a6e..0e6230d08c4 100644 --- a/lib/Object/ELFObjectFile.cpp +++ b/lib/Object/ELFObjectFile.cpp @@ -29,7 +29,7 @@ ObjectFile::createELFObjectFile(std::unique_ptr &Obj) { #if !LLVM_IS_UNALIGNED_ACCESS_FAST if (MaxAlignment >= 4) R.reset(new ELFObjectFile>( - Obj.release(), EC)); + std::move(Obj), EC)); else #endif if (MaxAlignment >= 2) @@ -40,7 +40,7 @@ ObjectFile::createELFObjectFile(std::unique_ptr &Obj) { else if (Ident.first == ELF::ELFCLASS32 && Ident.second == ELF::ELFDATA2MSB) #if !LLVM_IS_UNALIGNED_ACCESS_FAST if (MaxAlignment >= 4) - R.reset(new ELFObjectFile>(Obj.release(), + R.reset(new ELFObjectFile>(std::move(Obj), EC)); else #endif