[C++11] Replace OwningPtr::take() with OwningPtr::release().
llvm-svn: 202957
This commit is contained in:
@@ -1071,5 +1071,5 @@ ErrorOr<ObjectFile *> ObjectFile::createCOFFObjectFile(MemoryBuffer *Object,
|
||||
OwningPtr<COFFObjectFile> Ret(new COFFObjectFile(Object, EC, BufferOwned));
|
||||
if (EC)
|
||||
return EC;
|
||||
return Ret.take();
|
||||
return Ret.release();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user