diff options
author | Ahmed Charles <ahmedcharles@gmail.com> | 2014-03-05 10:19:29 +0000 |
---|---|---|
committer | Ahmed Charles <ahmedcharles@gmail.com> | 2014-03-05 10:19:29 +0000 |
commit | 1a6eca243f9274b9b371b7306fa939568ce5c37f (patch) | |
tree | e08f8984bc44b63a79a4e1737a47dd66e86c1850 /lib/IR/Core.cpp | |
parent | 7b62be28cbc6cce31852831570a87d9699fbcecd (diff) |
[C++11] Replace OwningPtr::take() with OwningPtr::release().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/Core.cpp')
-rw-r--r-- | lib/IR/Core.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/IR/Core.cpp b/lib/IR/Core.cpp index f63263fd1f5..efca2bffbf6 100644 --- a/lib/IR/Core.cpp +++ b/lib/IR/Core.cpp @@ -2539,7 +2539,7 @@ LLVMBool LLVMCreateMemoryBufferWithContentsOfFile( OwningPtr<MemoryBuffer> MB; error_code ec; if (!(ec = MemoryBuffer::getFile(Path, MB))) { - *OutMemBuf = wrap(MB.take()); + *OutMemBuf = wrap(MB.release()); return 0; } @@ -2552,7 +2552,7 @@ LLVMBool LLVMCreateMemoryBufferWithSTDIN(LLVMMemoryBufferRef *OutMemBuf, OwningPtr<MemoryBuffer> MB; error_code ec; if (!(ec = MemoryBuffer::getSTDIN(MB))) { - *OutMemBuf = wrap(MB.take()); + *OutMemBuf = wrap(MB.release()); return 0; } |