diff options
| author | Ahmed Charles <ahmedcharles@gmail.com> | 2014-03-07 19:33:25 +0000 |
|---|---|---|
| committer | Ahmed Charles <ahmedcharles@gmail.com> | 2014-03-07 19:33:25 +0000 |
| commit | 789a4f820d8ce0e21a268b996b036be78a1773a2 (patch) | |
| tree | 4fad1faead6966f1e66d9388b7cf2ada0f0d9575 /lib/Serialization/GlobalModuleIndex.cpp | |
| parent | 36ca0697fcf4c786fb25d9557594c9a032487979 (diff) | |
| download | clang-789a4f820d8ce0e21a268b996b036be78a1773a2.tar.gz clang-789a4f820d8ce0e21a268b996b036be78a1773a2.tar.bz2 clang-789a4f820d8ce0e21a268b996b036be78a1773a2.tar.xz | |
Change OwningPtr::take() to OwningPtr::release().
This is a precursor to moving to std::unique_ptr.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203275 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/GlobalModuleIndex.cpp')
| -rw-r--r-- | lib/Serialization/GlobalModuleIndex.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Serialization/GlobalModuleIndex.cpp b/lib/Serialization/GlobalModuleIndex.cpp index fcdf5f5a8d..e46cb97b9f 100644 --- a/lib/Serialization/GlobalModuleIndex.cpp +++ b/lib/Serialization/GlobalModuleIndex.cpp @@ -247,8 +247,9 @@ GlobalModuleIndex::readIndex(StringRef Path) { Cursor.Read(8) != 'I') { return std::make_pair((GlobalModuleIndex *)0, EC_IOError); } - - return std::make_pair(new GlobalModuleIndex(Buffer.take(), Cursor), EC_None); + + return std::make_pair(new GlobalModuleIndex(Buffer.release(), Cursor), + EC_None); } void |
