aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/FileSystemStatCache.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-05-08 06:41:40 +0000
committerCraig Topper <craig.topper@gmail.com>2014-05-08 06:41:40 +0000
commitf1186c5a8f504efce819a38cec02ba3b12fe5df0 (patch)
treeee4a75d711caeefe426501affec89172f4d40c00 /clang/lib/Basic/FileSystemStatCache.cpp
parent0120ce8c9f8511733e68092861e23b6a51bdfb3a (diff)
downloadllvm-f1186c5a8f504efce819a38cec02ba3b12fe5df0.zip
llvm-f1186c5a8f504efce819a38cec02ba3b12fe5df0.tar.gz
llvm-f1186c5a8f504efce819a38cec02ba3b12fe5df0.tar.bz2
[C++11] Use 'nullptr'.
llvm-svn: 208280
Diffstat (limited to 'clang/lib/Basic/FileSystemStatCache.cpp')
-rw-r--r--clang/lib/Basic/FileSystemStatCache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Basic/FileSystemStatCache.cpp b/clang/lib/Basic/FileSystemStatCache.cpp
index 9d87999..44ba48a 100644
--- a/clang/lib/Basic/FileSystemStatCache.cpp
+++ b/clang/lib/Basic/FileSystemStatCache.cpp
@@ -96,7 +96,7 @@ bool FileSystemStatCache::get(const char *Path, FileData &Data, bool isFile,
// fstat rarely fails. If it does, claim the initial open didn't
// succeed.
R = CacheMissing;
- *F = 0;
+ *F = nullptr;
}
}
}
@@ -110,7 +110,7 @@ bool FileSystemStatCache::get(const char *Path, FileData &Data, bool isFile,
// If not, close the file if opened.
if (F && *F) {
(*F)->close();
- *F = 0;
+ *F = nullptr;
}
return true;