From 8659ad443a9f56726e9d356ef98396654dbd9e91 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 24 Jun 2014 14:25:17 +0000 Subject: [PATCH] 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 --- lib/Object/ELFObjectFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.34.1