From 603e37c3dd2933111c6e34c1c866a03c45d163b6 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Thu, 8 May 2014 06:41:40 +0000 Subject: [C++11] Use 'nullptr'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208280 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/FileSystemStatCache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Basic/FileSystemStatCache.cpp') 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; -- cgit v1.2.3