aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/FileSystemStatCache.cpp
diff options
context:
space:
mode:
authorAhmed Charles <ahmedcharles@gmail.com>2014-03-07 19:33:25 +0000
committerAhmed Charles <ahmedcharles@gmail.com>2014-03-07 19:33:25 +0000
commit9a16beb8bc580212df519aa488242a94e53741d8 (patch)
tree569f8fb251291e9aaacc0ddb6d509a9561ddc264 /clang/lib/Basic/FileSystemStatCache.cpp
parent9cbd3c628cfdcb7ba2f372b57db317df2a271ebb (diff)
downloadllvm-9a16beb8bc580212df519aa488242a94e53741d8.zip
llvm-9a16beb8bc580212df519aa488242a94e53741d8.tar.gz
llvm-9a16beb8bc580212df519aa488242a94e53741d8.tar.bz2
Change OwningPtr::take() to OwningPtr::release().
This is a precursor to moving to std::unique_ptr. llvm-svn: 203275
Diffstat (limited to 'clang/lib/Basic/FileSystemStatCache.cpp')
-rw-r--r--clang/lib/Basic/FileSystemStatCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/FileSystemStatCache.cpp b/clang/lib/Basic/FileSystemStatCache.cpp
index e50dc1b..dfab929 100644
--- a/clang/lib/Basic/FileSystemStatCache.cpp
+++ b/clang/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.