From: David Blaikie Date: Mon, 21 Jul 2014 16:46:14 +0000 (+0000) Subject: Fix lld build for llvm API changes committed in r213557 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ced7b43a064c696a98fd6f2a0a8e972a07e4cdeb;p=platform%2Fupstream%2Fllvm.git Fix lld build for llvm API changes committed in r213557 llvm-svn: 213560 --- diff --git a/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp b/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp index f1d833c..b422319 100644 --- a/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp +++ b/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp @@ -285,7 +285,7 @@ DefinedAtom::Merge getMerge(const coff_aux_section_definition *auxsym) { FileCOFF::FileCOFF(std::unique_ptr mb, std::error_code &ec) : File(mb->getBufferIdentifier(), kindObject), _compatibleWithSEH(false), _ordinal(0) { - auto binaryOrErr = llvm::object::createBinary(mb); + auto binaryOrErr = llvm::object::createBinary(std::move(mb)); if ((ec = binaryOrErr.getError())) return; std::unique_ptr bin(binaryOrErr.get());