diff options
| author | Craig Topper <craig.topper@gmail.com> | 2014-05-08 06:41:40 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2014-05-08 06:41:40 +0000 |
| commit | 603e37c3dd2933111c6e34c1c866a03c45d163b6 (patch) | |
| tree | 16b4912d3d94677472ec4acf0710ffff17e7cd30 /lib/Basic/FileSystemStatCache.cpp | |
| parent | 60efcfe13b442a0e0b5f9d11a590eb8955687271 (diff) | |
[C++11] Use 'nullptr'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208280 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/FileSystemStatCache.cpp')
| -rw-r--r-- | lib/Basic/FileSystemStatCache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Basic/FileSystemStatCache.cpp b/lib/Basic/FileSystemStatCache.cpp index 9d87999509..44ba48aa2f 100644 --- a/lib/Basic/FileSystemStatCache.cpp +++ b/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; |
