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/Basic/FileSystemStatCache.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/Basic/FileSystemStatCache.cpp')
| -rw-r--r-- | lib/Basic/FileSystemStatCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Basic/FileSystemStatCache.cpp b/lib/Basic/FileSystemStatCache.cpp index e50dc1b5ed..dfab9299c0 100644 --- a/lib/Basic/FileSystemStatCache.cpp +++ b/lib/Basic/FileSystemStatCache.cpp @@ -91,7 +91,7 @@ bool FileSystemStatCache::get(const char *Path, FileData &Data, bool isFile, if (Status) { R = CacheExists; copyStatusToFileData(*Status, Data); - *F = OwnedFile.take(); + *F = OwnedFile.release(); } else { // fstat rarely fails. If it does, claim the initial open didn't // succeed. |
