mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
A std::unique_ptr case I missed in the previous patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214379 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -184,12 +184,13 @@ Archive::Child::getAsBinary(LLVMContext *Context) const {
|
||||
return createBinary(std::move(*BuffOrErr), Context);
|
||||
}
|
||||
|
||||
ErrorOr<Archive *> Archive::create(std::unique_ptr<MemoryBuffer> Source) {
|
||||
ErrorOr<std::unique_ptr<Archive>>
|
||||
Archive::create(std::unique_ptr<MemoryBuffer> Source) {
|
||||
std::error_code EC;
|
||||
std::unique_ptr<Archive> Ret(new Archive(std::move(Source), EC));
|
||||
if (EC)
|
||||
return EC;
|
||||
return Ret.release();
|
||||
return std::move(Ret);
|
||||
}
|
||||
|
||||
Archive::Archive(std::unique_ptr<MemoryBuffer> Source, std::error_code &ec)
|
||||
|
Reference in New Issue
Block a user