From cf981625747ddbc3220b948817578b31ad691349 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 11 Feb 2016 19:54:18 +0000 Subject: [PATCH] Use copy initialization. We can do it since getMemBuffer returns a unique_ptr. llvm-svn: 260576 --- llvm/lib/Object/IRObjectFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Object/IRObjectFile.cpp b/llvm/lib/Object/IRObjectFile.cpp index 9602d4d..8b84648 100644 --- a/llvm/lib/Object/IRObjectFile.cpp +++ b/llvm/lib/Object/IRObjectFile.cpp @@ -305,8 +305,8 @@ llvm::object::IRObjectFile::create(MemoryBufferRef Object, if (!BCOrErr) return BCOrErr.getError(); - std::unique_ptr Buff( - MemoryBuffer::getMemBuffer(BCOrErr.get(), false)); + std::unique_ptr Buff = + MemoryBuffer::getMemBuffer(BCOrErr.get(), false); ErrorOr> MOrErr = getLazyBitcodeModule(std::move(Buff), Context, -- 2.7.4